예제 #1
0
        public async Task <ActionResult> GetShop(string shopNo)
        {
            var shop = await Task.FromResult(Bak365Service.GetShopInfo(shopNo));

            if (shop == null)
            {
                return(Json(new AjaxResult()
                {
                    state = "err", msg = "找不到此门店"
                }));
            }

            return(Json(new AjaxResult()
            {
                state = "ok", data = shop
            }));
        }
예제 #2
0
        public ActionResult GetShop(string shopNo)
        {
            var shop = Bak365Service.GetShopInfo(shopNo);

            if (shop == null)
            {
                return(Json(new AjaxResult()
                {
                    state = "no", msg = "无此门店"
                }));
            }
            else
            {
                return(Json(new AjaxResult()
                {
                    state = "ok", data = shop
                }));
            }
        }