public ActionResult NoticeOfInvestigations() { var viewData = CMSService.GetNoticeOfInvestigationModelData(); if (User.IsInRole("CMS_DDD")) { viewData.ListOfNoticeofInvestigations = viewData.ListOfNoticeofInvestigations.Where(i => i.IsDDD == true).ToList(); } else if (User.IsInRole("CMS_DRS")) { viewData.ListOfNoticeofInvestigations = viewData.ListOfNoticeofInvestigations.Where(i => i.IsDRS == true).ToList(); } return(View(viewData)); }