Ejemplo n.º 1
0
 public async Task<ActionResult> Create(UserProfileViewModel userProfileViewModel)
 {
     int uesrId = User.Identity.GetUserId<int>();
     userProfileViewModel.Id = uesrId;
     await userProfileService.AddAsync(userProfileViewModel);
     return RedirectToAction("Index", "AjaxPerson");
 }
Ejemplo n.º 2
0
        public  async Task AddAsync(UserProfileViewModel userProfileViewModel)
        {

            var userprofile = Mapper.Map<UserProfileViewModel, UserProfile>(userProfileViewModel);
            await userProfileRep.AddAsync(userprofile);

        }