Beispiel #1
0
        public void SaveUserInfo(UserInfo userInfo)
        {
            using (IUserRegistrationUow userRegInfoUow = new UserRegistrationUow())
            {
                BaseConverter<UserInfo, ApplicationUser> viewModelToAppUserModelConv= new BaseConverter<UserInfo, ApplicationUser>();
                var appUserDetails = viewModelToAppUserModelConv.SourceModelToTargetModel(userInfo, new ApplicationUser());
                appUserDetails.LoginId = "test";
                appUserDetails.LoginKey = "1";
                appUserDetails.IsSysGenerated = "Y";
                appUserDetails.RoleId = 1;
                appUserDetails.Email = "*****@*****.**";
                appUserDetails.StatusId = 1;
                appUserDetails.UserTypeId = 1;
                userRegInfoUow.AppUser.Add(appUserDetails);

                BaseConverter<UserInfo, MemberAccount> viewModelToMemAccModelConv = new BaseConverter<UserInfo, MemberAccount>();
                var memAccDetails = viewModelToMemAccModelConv.SourceModelToTargetModel(userInfo, new MemberAccount());
                memAccDetails.CreatedBy = 1;
                memAccDetails.CreatedTime = DateTime.Now;
                memAccDetails.Email = "*****@*****.**";
                userRegInfoUow.MemAccount.Add(memAccDetails);

                userRegInfoUow.Commit();
            }
        }
 public ActionResult SaveUserInformation(UserInfo usrInfoDetail)
 {
     usrManager.SaveUserInfo(usrInfoDetail);
     ViewBag.result = "Data Saved Successfully";
     return View();
 }
Beispiel #3
0
 public void UpdateUserInfo(long id, UserInfo userInfo)
 {
     throw new NotImplementedException();
 }