public async Task <ActionResult> OnGet() { var lxRslt = await IssuBO.GetAllLbl(); if (lxRslt.Err == null) { LstLbl = lxRslt.Lst; } return(Page()); }
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()); }