public async void OnGet(int id)
        {
            var lxRslt = await IssuBO.Get(id);

            if (lxRslt.EsVld == false)
            {
                TempData["ExErr"] = lxRslt.Err;
            }

            Issu = lxRslt.Sngl;
        }
Exemple #2
0
        public async Task <ActionResult <IssuModel> > Get(int id)
        {
            bool lxIssuExists = await IssuBO.Exists(id);

            if (!lxIssuExists)
            {
                return(NotFound());
            }

            var lxRslt = await IssuBO.Get(id);

            if (lxRslt.Err == null)
            {
                var lxIssu = lxRslt.Sngl;
                return(Ok(lxIssu));
            }
            else
            {
                return(BadRequest(lxRslt.Err));
            }
        }
Exemple #3
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());
        }