public async Task <IHttpActionResult> CustomerSearchBySale(CustomerBySaleRequestModel request) { SaleService service = this.Service as SaleService; try { request.ShopId = AppUser.ShopId; var list = await service.CustomerSearchBySale(request); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, list); return(ResponseMessage(response)); } catch (Exception exception) { Logger.Fatal(exception, "Exception occurred while CustomerSearchBySale with request "); return(this.InternalServerError(exception)); } }