Exemple #1
0
        public async Task <IActionResult> DeleteTagFromTaskAsync(int taskId, string tag, [FromServices] IDeleteTagFromTaskCommand command)
        {
            try
            {
                var response = await command.ExecuteAsync(taskId, tag);

                return(Ok(response));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }
        public async Task <IActionResult> DeleteTagFromTaskAsync(int taskId, string tag, [FromServices] IDeleteTagFromTaskCommand command)
        {
            await command.ExecuteAsync(taskId, tag);

            return(NoContent());
        }