Exemplo n.º 1
0
        public void GetItemById(int itemId)
        {
            Business.DBRepository2 bll = new Business.DBRepository2();
            //Task t = bll.GetItemById(1);

            var a = bll.GetItemByIdAsync(itemId).Result;
        }
Exemplo n.º 2
0
        public List <ShopDataContract> GetShops()
        {
            Business.DBRepository2  bll   = new Business.DBRepository2();
            List <ShopDataContract> shops = bll.GetShops();

            return(shops);
            //return json(shops, "application/json");
        }
Exemplo n.º 3
0
        public void SetShp()
        {
            Business.DBRepository2 bll = new Business.DBRepository2();
            ShopDataContract       shopDataContract = new ShopDataContract();

            shopDataContract.Name = "Carefour";

            var a = bll.SetShop(shopDataContract);
        }
Exemplo n.º 4
0
        public void UpdateShp()
        {
            Business.DBRepository2 bll = new Business.DBRepository2();
            ShopDataContract       shopDataContract = new ShopDataContract();

            shopDataContract.Name = "Carefours";
            shopDataContract.Id   = 5;

            var a = bll.UpdateShop(shopDataContract);
        }
Exemplo n.º 5
0
 public void GetItemsAsync()
 {
     Business.DBRepository2 bll = new Business.DBRepository2();
     var a = bll.GetAllItemsAsync().Result;
 }
Exemplo n.º 6
0
 public void GetItem()
 {
     Business.DBRepository2 bll = new Business.DBRepository2();
     var a = bll.GetAllItems();
 }