public async Task<IHttpActionResult> GetSupplier(int id)
 {
     var supplierDto = await _supplierService.GetSingleAsync(id);
     if (supplierDto == null)
     {
         return NotFound();
     }
     var result = new SupplierCompleteDto() { Suppliers = new List<SupplierDto>() };
     result.Suppliers.Add(supplierDto);
     return Ok(result);
 }
 public async Task<SupplierCompleteDto> GetSuppliers(string custom = "false")
 {
     var suppliersDto = await _supplierService.GetAllAsync(custom);
     var result = new SupplierCompleteDto {Suppliers = suppliersDto.OrderBy(s => s.Name).ToList()};
     return result;
 }
 public async Task<SupplierCompleteDto> GetSuppliersBySearch(string query, int from = 0, int size = 20)
 {
     var supplierDto = await _supplierService.SearchAsync(query,from,size);
     var result = new SupplierCompleteDto {Suppliers = supplierDto.ToList()};
     return result;
 }