Pulsey.Core.Repositories.UserRepository.InsertUserProfile C# (CSharp) Method

InsertUserProfile() public method

public InsertUserProfile ( User objUser ) : bool
objUser Pulsey.Core.Models.User
return bool
        public bool InsertUserProfile(User objUser)
        {
            using (var context = new PulseyContext())
            {
                context.Users.Add(objUser);
                context.SaveChanges();
            }
            return true;
        }

Usage Example

Esempio n. 1
0
 public ActionResult UserProfile(User user)
 {
     var repo = new UserRepository();
     repo.InsertUserProfile(user);
     return View();
 }