public ActionResult PersonnelPermissionDetailsModal(int id) { List <Personnels> res = personnelManager.GetPersonnelPermissionDetails(id); if (res.Count == 0) { return(HttpNotFound()); } return(PartialView("_PartialPersonnelPermissionDetails", res)); }