public async Task Create(UserAppendInputDto input) { var user = input.MapTo <User>(); await _userManager.Create(user); //await EventBus.TriggerAsync(new CreateUserEvent { Name = input.Name, Code = input.Code }); }
//[AuthorizeAttribute()] public async Task <HttpResponse <int> > Append([FromBody] UserAppendInputDto inputDto) { //var ddd = this.HttpContext.User; var roles = roleRepo.GetAllList(); await _userAppService.Create(inputDto); return(Success(0)); }