public async Task <IActionResult> Create(CreateTaskCommand command)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                var result = await _taskService.CreateTaskCommandHandler(command);

                return(Created($"/api/tasks/{result.Payload.Id}", result));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }