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