Пример #1
0
 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);
     }
 }
Пример #2
0
 public void SaveChange()
 {
     _context.SaveChanges();
 }