Esempio n. 1
0
 public ActionResult EditUser(string username, [FromBody] User user)
 {
     if (user.Username != null)
     {
         user = dao.UpdateUser(user);
     }
     return(Ok());
 }
Esempio n. 2
0
 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);
 }
Esempio n. 4
0
 public bool UpdateUser(Guid id, string name, int age, DateTime birth, string emblempath = null) => daoUsers.UpdateUser(new User(id, age, name, birth, emblempath));
Esempio n. 5
0
 public bool UpdateUser(Guid id, string name, int age, DateTime birth) => daoUsers.UpdateUser(new User(id, age, name, birth));