public async Task <bool> DeleteTask([FromBody] string userTaskId) { return(await _tasksService.DeleteUserTask(UserId, userTaskId)); }
public async Task <IActionResult> DeleteTask(string userTaskId) { await _tasksService.DeleteUserTask(UserId, userTaskId); return(RedirectToAction(nameof(GetAll))); }