public void Update(StoreManagement.Model.User update)
 {
     try
     {
         _context.Entry(update).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
         _context.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void Delete(StoreManagement.Model.User delete)
 {
     if (delete != null)
     {
         try
         {
             _context.User.Remove(delete);
             _context.SaveChanges();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
 public void Create(StoreManagement.Model.User add)
 {
     if (add != null)
     {
         try
         {
             _context.User.Add(add);
             _context.SaveChanges();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }