public IActionResult Del_Task([FromRoute] Guid usersid, [FromBody] IdDTO taskid) { try { TasksService TasksService = new TasksService(); if (TasksService.DelTask(taskid, usersid)) { return(Ok()); } return(StatusCode(422)); } catch (Exception e) { throw e; } }