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))); }
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))); }
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)); }
// 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); }
// 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); }
public IHttpActionResult Shop_Select([FromBody] ShopModel shopModel) { ShopBL shopBL = new ShopBL(); return(Ok(shopBL.Shop_Select(shopModel))); }
public IHttpActionResult ShopList_Select() { ShopBL shopbl = new ShopBL(); return(Ok(shopbl.ShopList_Select())); }