常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> DeleteTask(int id) { bool add = await _taskRepository.AddToDeletedTasks(id); if (add == true) { bool success = await _taskRepository.DeleteTask(id); return(RedirectToAction(nameof(GetAllTasks), new { delete = add })); } return(null); }