コード例 #1
0
        public IHttpActionResult Shop_ExistCheck([FromBody] ShopModel shopModel)
        {
            ShopBL shopBL = new ShopBL();

            string[] arr = shopModel.Val2.Split('/');
            shopModel.ShopID = shopModel.Val2.Split('/')[1] + shopModel.Val1;
            return(Ok(shopBL.Shop_ExistCheck(shopModel)));
        }
コード例 #2
0
        public IHttpActionResult Shop_Save([FromBody] ShopModel shopModel)
        {
            string[] arr    = shopModel.MallID.Split('/');
            ShopBL   shopBL = new ShopBL();

            shopModel.MallID = arr[0];
            shopModel.ShopID = arr[1] + shopModel.ShopSiteID;
            return(Ok(shopBL.Shop_Save(shopModel)));
        }
コード例 #3
0
        public ActionResult ShopEntry(ShopModel shopModel)
        {
            if (shopModel.Mode == null)
            {
                shopModel      = new ShopModel();
                shopModel.Mode = "New";
            }

            ShopBL bl = new ShopBL();

            if (shopModel.Mode.Equals("Edit"))
            {
                shopModel = bl.ShopModel_Select(shopModel);
            }
            return(View(shopModel));
        }
コード例 #4
0
        // POST: api/Unit
        public ServerResponse Post([FromBody] Shop Shop)
        {
            var res = new ServerResponse();

            using (ShopBL ShopBL = new ShopBL())
            {
                try
                {
                    res.Data = ShopBL.SaveShop(Shop);
                }
                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }
コード例 #5
0
        // GET: api/Unit/5
        public ServerResponse Get(string id)
        {
            var res = new ServerResponse();

            using (ShopBL ShopBL = new ShopBL())
            {
                try
                {
                    res.Data = ShopBL.GetShop(id);
                }
                catch (Exception ex)
                {
                    res.Success = false;
                }
            }
            return(res);
        }
コード例 #6
0
        public IHttpActionResult Shop_Select([FromBody] ShopModel shopModel)
        {
            ShopBL shopBL = new ShopBL();

            return(Ok(shopBL.Shop_Select(shopModel)));
        }
コード例 #7
0
        public IHttpActionResult ShopList_Select()
        {
            ShopBL shopbl = new ShopBL();

            return(Ok(shopbl.ShopList_Select()));
        }