public void AssignRoles(string userAuthId, ICollection <string> roles = null, ICollection <string> permissions = null) { _bus.CommandToDomain <Domain.Authentication.Users.Commands.AssignRoles>(x => { x.UserAuthId = userAuthId; x.Roles = roles; x.Permissions = permissions; }).Wait(); }
public async Task Post(Models.AU_Register request) { var command = request.ConvertTo <Domain.Authentication.Users.Commands.Register>(); await _bus.CommandToDomain(command); }