Пример #1
0
        public IActionResult Index()
        {
            ViewBag.lang = langcode;
            string nationalId = TempData["NationalId"].ToString();
            string yob        = TempData["YOB"].ToString();

            TempData.Keep("YOB");
            TempData.Keep("NationalId");
            var _tobs = _tobHandler.GetTOBById(nationalId, yob);

            return(View(_tobs));
        }
Пример #2
0
 public IActionResult Index()
 {
     try
     {
         ViewBag.lang = langcode;
         string nationalId = TempData["NationalId"].ToString();
         string yob        = TempData["YOB"].ToString();
         TempData.Keep("YOB");
         TempData.Keep("NationalId");
         var _tobs = _tobHandler.GetTOBById(nationalId, yob);
         return(View(_tobs));
     }
     catch (Exception ex)
     {
         _logger.LogInformation(_className + "::Index::" + ex.Message);
     }
     return(View(new TOB()));
 }