Esempio n. 1
0
        public async Task <ActionResult> OnGet()
        {
            var lxRslt = await IssuBO.GetAllLbl();

            if (lxRslt.Err == null)
            {
                LstLbl = lxRslt.Lst;
            }

            return(Page());
        }
Esempio n. 2
0
        public async Task <ActionResult> OnGet(int id)
        {
            var lxRsltLbl = await IssuBO.GetAllLbl();

            if (lxRsltLbl.EsVld == false)
            {
                TempData["ExErr"] = lxRsltLbl.Err;
                return(RedirectToPage("./Index"));
            }
            LstLbl = lxRsltLbl.Lst;

            var lxRslt = await IssuBO.Get(id);

            if (lxRslt.EsVld == false)
            {
                TempData["ExErr"] = lxRslt.Err;
                return(RedirectToPage("./Index"));
            }
            Issu = lxRslt.Sngl;

            return(Page());
        }