public void GetItemById(int itemId) { Business.DBRepository2 bll = new Business.DBRepository2(); //Task t = bll.GetItemById(1); var a = bll.GetItemByIdAsync(itemId).Result; }
public List <ShopDataContract> GetShops() { Business.DBRepository2 bll = new Business.DBRepository2(); List <ShopDataContract> shops = bll.GetShops(); return(shops); //return json(shops, "application/json"); }
public void SetShp() { Business.DBRepository2 bll = new Business.DBRepository2(); ShopDataContract shopDataContract = new ShopDataContract(); shopDataContract.Name = "Carefour"; var a = bll.SetShop(shopDataContract); }
public void UpdateShp() { Business.DBRepository2 bll = new Business.DBRepository2(); ShopDataContract shopDataContract = new ShopDataContract(); shopDataContract.Name = "Carefours"; shopDataContract.Id = 5; var a = bll.UpdateShop(shopDataContract); }
public void GetItemsAsync() { Business.DBRepository2 bll = new Business.DBRepository2(); var a = bll.GetAllItemsAsync().Result; }
public void GetItem() { Business.DBRepository2 bll = new Business.DBRepository2(); var a = bll.GetAllItems(); }