public ActionResult SubmitUserConfidentiality(viewUserConfidentiality uc) { CMSService.SaveUserConfidentiality(uc); return(RedirectToAction("RegisterUser", "Account")); }
public ActionResult UserConfidentiality(int userId) { viewUserConfidentiality uc = new viewUserConfidentiality(); viewUser user = CMSService.GetUser(userId); uc.UserId = user.UserId; uc.UserName = user.UserName; uc.Date = DateTime.Now; foreach (var c in user.UserContracts) { uc.UserAgencyNames.Add(c.ContractName); } uc.UserAgencyNames.Add(user.UserMCO.Name); uc.UserAgencyNames.Add(user.UserPSA.PSAName); uc.UserRoleName = user.RoleDescription; uc.UserFirstName = user.FirstName; uc.UserLastName = user.LastName; return(View(uc)); }