public async Task <IActionResult> Delete(Guid id) { var result = await _todoService.DelTodoTypeAsync(id); if (!result) { return(Redirect("/home/index")); } return(Redirect("/")); }