public async Task <ActionResult <long> > CountStore([FromBody] Customer_StoreFilterDTO Customer_StoreFilterDTO) { if (UnAuthorization) { return(Forbid()); } if (!ModelState.IsValid) { throw new BindException(ModelState); } StoreFilter StoreFilter = new StoreFilter(); StoreFilter.Id = Customer_StoreFilterDTO.Id; StoreFilter.Code = Customer_StoreFilterDTO.Code; StoreFilter.CodeDraft = Customer_StoreFilterDTO.CodeDraft; StoreFilter.Name = Customer_StoreFilterDTO.Name; StoreFilter.UnsignName = Customer_StoreFilterDTO.UnsignName; StoreFilter.ParentStoreId = Customer_StoreFilterDTO.ParentStoreId; StoreFilter.OrganizationId = Customer_StoreFilterDTO.OrganizationId; StoreFilter.StoreTypeId = Customer_StoreFilterDTO.StoreTypeId; StoreFilter.StoreGroupingId = Customer_StoreFilterDTO.StoreGroupingId; StoreFilter.Telephone = Customer_StoreFilterDTO.Telephone; StoreFilter.ProvinceId = Customer_StoreFilterDTO.ProvinceId; StoreFilter.DistrictId = Customer_StoreFilterDTO.DistrictId; StoreFilter.WardId = Customer_StoreFilterDTO.WardId; StoreFilter.Address = Customer_StoreFilterDTO.Address; StoreFilter.UnsignAddress = Customer_StoreFilterDTO.UnsignAddress; StoreFilter.DeliveryAddress = Customer_StoreFilterDTO.DeliveryAddress; StoreFilter.Latitude = Customer_StoreFilterDTO.Latitude; StoreFilter.Longitude = Customer_StoreFilterDTO.Longitude; StoreFilter.DeliveryLatitude = Customer_StoreFilterDTO.DeliveryLatitude; StoreFilter.DeliveryLongitude = Customer_StoreFilterDTO.DeliveryLongitude; StoreFilter.OwnerName = Customer_StoreFilterDTO.OwnerName; StoreFilter.OwnerPhone = Customer_StoreFilterDTO.OwnerPhone; StoreFilter.OwnerEmail = Customer_StoreFilterDTO.OwnerEmail; StoreFilter.TaxCode = Customer_StoreFilterDTO.TaxCode; StoreFilter.LegalEntity = Customer_StoreFilterDTO.LegalEntity; StoreFilter.AppUserId = Customer_StoreFilterDTO.AppUserId; StoreFilter.StatusId = Customer_StoreFilterDTO.StatusId; StoreFilter.StoreStatusId = Customer_StoreFilterDTO.StoreStatusId; StoreFilter.CustomerId = Customer_StoreFilterDTO.CustomerId; StoreFilter.isSelected = Customer_StoreFilterDTO.isSelected; return(await StoreService.Count(StoreFilter)); }