public string AddUser(string email, string password, string salt) { try { User user = new User() { UserName = email, ActiveStatus = Enums.Status.InActive, IsDelete = false, CreateTime = DateTime.Now, Password = password, Salt = salt }; _context.Users.Add(user); _context.SaveChanges(); return("Success"); } catch (Exception ex) { return(ex.Message); } }
public void SaveChange() { _context.SaveChanges(); }