public JsonResult Login(Business.Model.ModelWeb.LoginModel model) { ICustomer _customer = new CustomerBO(); Customer data = _customer.Login(model.LoginName, model.Password); if (data != null) { _session.IsLogin = true; _session.IsStore = false; _session.CustomerID = data.CustomerID; _session.FullName = data.FullName; _session.StoreID = data.StoreID; return Json(new { IsOk = true }, JsonRequestBehavior.AllowGet); } return Json(new { IsOk = false }, JsonRequestBehavior.AllowGet); }