public bool Edit(Product product)
 {
     _context.Entry(product).State = EntityState.Modified;
     try
     {
         _context.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 public bool Edit(User user)
 {
     _context.Entry(user).State = EntityState.Modified;
     try
     {
         _context.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }