public ActionResult ViewNoticeOfInvestigation(int AssessmentPrepId) { AssessmentPreparationModel asp = CMSService.GetAssessmentForm(AssessmentPrepId); asp.viewIntake = new viewIntake(); asp.viewIntake = CMSService.GetIntake(Convert.ToInt32(asp.IntakeId)); asp.viewIntake.viewCaseHeader = CMSService.GetCaseHeaderById((int)asp.viewIntake.CaseheaderId); //if (userrole = IsDDD || userrole == IsDRS) //{ // asp.StatusDescription = CaseStatus.Verified.ToString(); // //} asp.StatusDescription = CaseStatus.Opened.ToString(); CMSService.UpdateNoticeofInvestigationStatus((int)asp.NoticeOfInvestigationId, asp.StatusDescription, username); return(View(asp)); }