Professional Documents
Culture Documents
[HttpGet("PointsDtos")]
public async Task<ActionResult<RetailCustomers>>
GetCustomerPointsFromDtos(string phone)
{
try
{
var Paramter = new SqlParameter("Phone", phone);
var resurt = await Task.Run(() =>
_context.CustomerPointsReadSPDtos.FromSqlRaw(@"Exec GetRetailCustomerLoyaltyPoints
@Phone", Paramter).ToListAsync());
if (resurt == null)
{
return BadRequest();
}
return Ok(resurt