public async Task <IEnumerable <Barang> > GetAll() { BarangDAL barangDal = new BarangDAL(); return(await barangDal.GetAll()); }
public IEnumerable <Barang> Get() { var results = barangDAL.GetAll(); return(results); }
// GET: api/Barang public IEnumerable <Barang> Get() { BarangDAL barangDAL = new BarangDAL(); return(barangDAL.GetAll()); }