Esempio n. 1
0
      public ActionResult SubmitUserConfidentiality(viewUserConfidentiality uc)
      {
          CMSService.SaveUserConfidentiality(uc);



          return(RedirectToAction("RegisterUser", "Account"));
      }
Esempio n. 2
0
      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));
      }