public async Task <IActionResult> Create([FromBody] ItemCreateVO itemCreate)
 => HandleCommand(await _mediator.Send(new ItemCreate.Command(CompanyId, UserId, itemCreate.AgentId, itemCreate.Name, itemCreate.DisplayName, itemCreate.Default, itemCreate.Interval)));
Example #2
0
 public async Task <IActionResult> CreateArchive([FromBody] ItemCreateVO itemCreate)
 => HandleCommand(await _mediator.Send(new ItemCreate.Command(CompanyId, UserId, itemCreate.AgentId,
                                                              itemCreate.Name, itemCreate.DisplayName,
                                                              itemCreate.AboutCurrentValue,
                                                              ETypeItem.SystemArchive)));