public ActionResult Delete(int projectId) { projectManagement.DeleteProject(projectId); return(RedirectToAction("List")); }
public IActionResult DeleteProject(int Id) { var result = pm.DeleteProject(Id); return(Ok(result)); }