Esempio n. 1
0
        public async Task <APIResult> Delete([FromBody] DeleteProcessCommand command)
        {
            var rs = await mediator.Send(command);

            return(new APIResult()
            {
                Result = rs
            });
        }
 public async Task <ActionResult <CommandResponse> > Delete([FromBody] DeleteProcessCommand command)
 {
     try
     {
         return(await this.mediator.Send(command));
     }
     catch (Exception ex)
     {
         return(this.BadRequest(ex.Message));
     }
 }