public ActionResult Edit(string Code) { var search = new LoadShopCriteria() { SysCode = SecurityPortal.ApplicationName, Code = Code }; Shop entity = BusinessPortal.Load<Shop>(search); return View(entity); }
public JsonResult CheckShopAuthPwd(string pwd) { var search = new LoadShopCriteria() { SysCode = SecurityPortal.ApplicationName, Code = App.Framework.Security.User.Current.ShopCode }; Shop entity = BusinessPortal.Load<Shop>(search); if (QuickInvoke.Encrypt(pwd) == entity.AUTH_PWD) { return Json(new { Result = true }, JsonRequestBehavior.AllowGet); } else { return Json(new { Result = false }, JsonRequestBehavior.AllowGet); } }