Esempio n. 1
0
        public IActionResult AddLawBase(int deloid)
        {
            var caseCase = nomenclatureService.GetCaseWithIncluded(deloid);
            var model    = new LawBaseEditVM()
            {
                DateStart      = DateTime.Now,
                CourtTypeId    = caseCase.Court.CourtTypeId,
                CaseGroupId    = caseCase.CaseGroupId,
                CaseInstanceId = caseCase.CaseType.CaseInstanceId,
                CaseId         = deloid,
                IsActive       = true
            };

            return(View(nameof(EditLawBase), model));
        }