public async Task <IEnumerable <Barang> > GetAllBarang() { BarangDAL barangDal = new BarangDAL(); return(await barangDal.GetAllBarang()); }
public IEnumerable <Barang> Get() { var results = barangDal.GetAllBarang(); return(results); }
public async Task <IEnumerable <Barang> > GetAllBarang() { BarangDAL barangDal = new BarangDAL(); return(await barangDal.GetAllBarang()); }
public IEnumerable <Barang> Get() { var results = barangDal.GetAllBarang(); return(results); }