public ActionResult EditUser(string username, [FromBody] User user) { if (user.Username != null) { user = dao.UpdateUser(user); } return(Ok()); }
public void UpdateUser(int user_id, int role_id, string login, string password) { _usersDao.UpdateUser(user_id, role_id, login, password); }
public bool UpdateUser(int userID, string firstName, string secondName, DateTime birthDay, List <Award> awards) { usersDAO.UpdateUser(userID, firstName, secondName, birthDay, awards); return(true); }
public bool UpdateUser(Guid id, string name, int age, DateTime birth, string emblempath = null) => daoUsers.UpdateUser(new User(id, age, name, birth, emblempath));
public bool UpdateUser(Guid id, string name, int age, DateTime birth) => daoUsers.UpdateUser(new User(id, age, name, birth));