Exemple #1
0
 public async Task AddMaintainerAsync(AddMaintainer model)
 {
     model.OrganizationId = _user.OrgId;
     model.Org2           = _user.Org2;
     var command = _mapper.Map <AddMaintainerCommand>(model);
     await _bus.SendCommandAsync(command);
 }
        public async Task <IActionResult> AddMaintainer([FromBody] AddMaintainer model)
        {
            await _maintainerService.AddMaintainerAsync(model);

            return(AppResponse(null, "操作成功"));
        }