コード例 #1
0
        // GET api/<controller>
        public IEnumerable <Supplier> Get()
        {
            var data = _supplier.GetAll();

            return(data);
        }
コード例 #2
0
 public IEnumerable <Supplier> GetAllSuppliers()
 {
     return(_supplierRepository.GetAll());
 }
コード例 #3
0
 public async Task <IActionResult> GetAll()
 {
     return(Ok(await _SupplierService.GetAll()));
 }