Beispiel #1
0
        public string CreateUser(User userModel)
        {
            User user = new User();

            user.UserId    = userModel.UserId;
            user.Password  = userModel.Password;
            user.FirstName = userModel.FirstName;
            user.LastName  = userModel.LastName;
            user.Mobile    = userModel.Mobile;
            user.Email     = userModel.Email;

            _dbContext.Add(user);
            _dbContext.SaveChanges();

            return("user created successfully");
        }
Beispiel #2
0
 public void Save()
 {
     _dbContext.SaveChanges();
 }