Beispiel #1
0
        /// <summary>
        /// Справка за физическо лице
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult PersonData(int?id)
        {
            RegixPersonDataVM model = null;

            if ((id ?? 0) > 0)
            {
                model = service.GetPersonalDataById(id ?? 0);
            }
            else
            {
                model = new RegixPersonDataVM();
                model.Report.CourtId = userContext.CourtId;
            }
            return(View(model));
        }
Beispiel #2
0
        /// <summary>
        /// Справка за физическо лице
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult PersonData(int?id)
        {
            RegixPersonDataVM model = null;

            if ((id ?? 0) > 0)
            {
                model = service.GetPersonalDataById(id ?? 0);
            }
            else
            {
                model = new RegixPersonDataVM();
                SetRegixReportMainData(model.Report);
            }

            SetHelpFile(HelpFileValues.Inquiry1);
            return(View(model));
        }