////GET: /User/Details/5 //public ActionResult EditUserApps(long pUserID) //{ // MDModel<SecurityUser, SecurityUserApplication> vModel = new MDModel<SecurityUser, SecurityUserApplication>(); // vModel.Master = oBLL.GetByID(pUserID); // vModel.DetailList = uaBLL.GetByUserCode(vModel.Master.UserCode); // if (vModel.Master == null) // { // return HttpNotFound(); // } // return View(vModel); //} //// POST: /User/Edit/5 //[HttpPost] //[ValidateAntiForgeryToken] //public ActionResult EditUserApps(MDModel<SecurityUser, SecurityUserApplication> pUserApplicationModel) //{ // if (uaBLL.SaveList(pUserApplicationModel.DetailList)) // { // return RedirectToAction("Index"); // } // else // { // return HttpNotFound(); // } //} public ActionResult CheckLoginName(string pLoginName) { SecurityUser vUser = oUserBLL.GetLikeByLoginName(pLoginName); if (vUser != null) { return(Json(pLoginName + " is not available, it is already given to " + vUser.EmployeeName + ".", JsonRequestBehavior.AllowGet)); } return(Json(pLoginName + " is available.", JsonRequestBehavior.AllowGet)); }