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 })); }
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 })); } }