예제 #1
0
        public JsonResult ListSentense()
        {
            int caseid = Convert.ToInt32(Session["IntakeassId"]);
            PCMPresentenceModel Model = new PCMPresentenceModel();

            //initialise view model
            PCMPresentenceDetailsViewModel VM = new PCMPresentenceDetailsViewModel();

            List <PCMPresentenceDetailsViewModel> List = Model.GetSentenseList(caseid).Select(x => new PCMPresentenceDetailsViewModel
            {
                Intake_Assessment_Id    = x.Intake_Assessment_Id,
                Sentence_Id             = x.Sentence_Id,
                Court_Date              = x.Court_Date,
                NextCourtDate           = x.NextCourtDate,
                SelectCaseStatusDetails = x.SelectCaseStatusDetails
            }).ToList();

            return(Json(List, JsonRequestBehavior.AllowGet));
        }