public bool Update(User original, User updated) { _context.Entry(original).CurrentValues.SetValues(updated); return true; }
public bool Insert(User user) { try { _context.Users.Add(user); return true; } catch { return false; } }