Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        public async Task Post(Models.AU_Register request)
        {
            var command = request.ConvertTo <Domain.Authentication.Users.Commands.Register>();

            await _bus.CommandToDomain(command);
        }