public PaginatedData <ServiceOutput> GetAllServices( [FromServices] GetAllServicesQuery query, [FromQuery] Pagination pagination ) { return(query.GetAllServices(pagination)); }
private void LoadDgvService() { var updateService = new GetAllServicesQuery(); dgvService.DataSource = updateService.GetAllServices(); }
private List <int> GetServiceTypes() { var getServices = new GetAllServicesQuery(); return(getServices.GetAllServices().Select(a => a.Id).ToList()); }
private void LoadDgvService() { var getServices = new GetAllServicesQuery(); dgvService.DataSource = getServices.GetAllServices(); }