public void Update(User entity)
        {
            User user = _context.Find <User>(entity.Id);

            user.FirstName = entity.FirstName;
            user.LastName  = entity.LastName;
            user.Username  = entity.Username;
            user.Password  = entity.Password;
            user.Notes     = entity.Notes;

            _context.Update(user);
        }
Пример #2
0
 public void Update(Note entity)
 {
     _context.Update(entity);
 }