public async Task <IActionResult> DeleteProject(int id) { bool add = await _projectRepository.AddToDeletedProjects(id); if (add == true) { bool success = await _projectRepository.DeleteProject(id); return(RedirectToAction(nameof(AddNewProject), new { delete = add })); } return(null); }