/// <summary> /// /// </summary> /// <param name="user"></param> public void Update(UserPutViewModel user) { var user1 = _context.Users.FirstOrDefault(f => f.Id == user.Id); user1.Login = user.Login; user1.Password = user.Password; _context.Users.Update(user1); _context.SaveChanges(); }
public void UserPut([FromBody] UserPutViewModel user) { _user.Update(user); }