// GET api/<controller> public IEnumerable <Supplier> Get() { var data = _supplier.GetAll(); return(data); }
public IEnumerable <Supplier> GetAllSuppliers() { return(_supplierRepository.GetAll()); }
public async Task <IActionResult> GetAll() { return(Ok(await _SupplierService.GetAll())); }