Esempio n. 1
0
 public bool Register(string username, string password)
 {
     return(_usersDb.AddUser(username, password));
 }
Esempio n. 2
0
 Task <IUser> IUsersService.AddUserAsync(string username, string fullname)
 {
     return(Task.Run(() => _usersProvider.AddUser(username, fullname).ToEntity()));
 }
 public async Task <User> AddUser([FromBody] User userToAdd)
 {
     return(await _usersProvider.AddUser(userToAdd));
 }