Ejemplo n.º 1
0
        public async Task <IActionResult> Delete(Guid id)
        {
            var cmd    = new DeleteStaffCommand(id);
            var result = await _mediator.Send(cmd);

            return(Ok(result));
        }
        public async Task <IActionResult> DELETE_STAFF([FromBody] DeleteStaffCommand command)
        {
            var response = await _mediator.Send(command);

            if (response.Status.IsSuccessful)
            {
                return(Ok(response));
            }
            return(BadRequest(response));
        }