Beispiel #1
0
        public override async Task <Empty> DeleteTask(DeleteTaskRequest deleteTaskRequest, ServerCallContext context)
        {
            var deleteTask = _mapper.Map <DeleteTaskRequest, DeleteTask>(deleteTaskRequest);

            return(_mapper.Map <Unit, Empty>(await _mediator.Send(deleteTask)));
        }
Beispiel #2
0
        public async Task <DeleteTaskResponse> Delete(DeleteTaskRequest request)
        {
            var response = await Mediator.Send(request);

            return(response);
        }