MvcKompApp.Models.PersonRemoteValidationModel GetUser(string uid) { MvcKompApp.Models.PersonRemoteValidationModel usrMdl = null; foreach (MvcKompApp.Models.PersonRemoteValidationModel um in UsrLstContainer.getUsrLst()) { if (um.UserName == uid) { usrMdl = um; } } return(usrMdl); }
public ActionResult Create(MvcKompApp.Models.PersonRemoteValidationModel um) { if (!UserNameHelper.IsAvailable(um.UserName)) { return(View(um)); } else { if (!TryUpdateModel(um)) { return(View(um)); } // ToDo: add persistent to DB. UsrLstContainer.getUsrLst().Add(um); return(View("Details", um)); } }
public ActionResult Index() { return(View(UsrLstContainer.getUsrLst())); }