public bool Register(string username, string password) { return(_usersDb.AddUser(username, password)); }
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)); }