public ActionResult Delete(int id) { //ViewBag.SideBar = _moduleService.AdminEmployeeDetailsMenu(id); DocumentCategoryDTO Record = new DocumentCategoryDTO(); try { //Record.DocumentEmpCode = _employeeDocumentService.GetEmpCode(id); _documentCategoryService.DeleteDocumentCategory(id); Session["Success"] = "Successfully Deleted Employee Document"; } catch (Exception Exception) { ViewBag.Error = Exception.Message; } return(RedirectToAction("Index", "DocumentCategory")); }