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"); }
public void Save() { _dbContext.SaveChanges(); }