Ejemplo n.º 1
0
        public IActionResult DeleteDocument(int documentId)
        {
            ProjectDocument document = new ProjectDocument(documentId);
            int             pId      = document.Project.Id;

            document.Remove();
            return(RedirectToAction("Project", "Projects", new { projectId = pId }));
        }