Example #1
0
        /// <summary>
        /// Справка търговски регистър
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult ActualStateV3(int?id)
        {
            RegixActualStateV3VM model = null;

            if ((id ?? 0) > 0)
            {
                (bool result, string errorMessage, RegixActualStateV3VM resultModel) = service.GetActualStateV3ById(id ?? 0);
                if (result == true)
                {
                    model = resultModel;
                }
                else
                {
                    model = new RegixActualStateV3VM();
                    model.Report.CourtId = userContext.CourtId;
                    ModelState.AddModelError("", errorMessage);
                }
            }
            else
            {
                model = new RegixActualStateV3VM();
                model.Report.CourtId = userContext.CourtId;
            }
            return(View(model));
        }
Example #2
0
        /// <summary>
        /// Справка търговски регистър
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult ActualStateV3(int?id)
        {
            RegixActualStateV3VM model = null;

            if ((id ?? 0) > 0)
            {
                (bool result, string errorMessage, RegixActualStateV3VM resultModel) = service.GetActualStateV3ById(id ?? 0);
                if (result == true)
                {
                    model = resultModel;
                }
                else
                {
                    model = new RegixActualStateV3VM();
                    SetRegixReportMainData(model.Report);
                    ModelState.AddModelError("", errorMessage);
                }
            }
            else
            {
                model = new RegixActualStateV3VM();
                SetRegixReportMainData(model.Report);
            }

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