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));
        }
        public ActionResult ViewClientAssessement(int Id, int IntakeId, int ReportOfSubstantiationId)
        {
            ClientAssessmentModel viewClientAssessment;


            viewClientAssessment = CMSService.GetCA(Id);

            //viewClientAssessment.mode = "summary";

            viewClientAssessment.caselookup = getcaselookup(username, ViewBag.UserContractId);

            viewClientAssessment.viewIntake = new viewIntake();

            viewClientAssessment.viewIntake = CMSService.GetIntake(IntakeId);
            viewClientAssessment.viewIntake.viewCaseHeader = CMSService.GetCaseHeaderById((int)viewClientAssessment.viewIntake.CaseheaderId);
            viewClientAssessment.CaseheaderId = viewClientAssessment.viewIntake.viewCaseHeader.Id;


            CMSService.UpdateReportofSubstantiationStatusNew(ReportOfSubstantiationId, CaseStatus.Opened.ToString(), username);

            return(View(viewClientAssessment));
        }