Beispiel #1
0
        public async Task <ActionResult> OnPost(int LblId)
        {
            var lxRslt = await LblBO.Delete(LblId);

            if (lxRslt.Err != null)
            {
                TempData["ExErr"] = lxRslt.Err;

                return(RedirectToPage("./Index"));
            }

            return(RedirectToPage("./Index"));
        }
Beispiel #2
0
        public async Task <ActionResult> Delete(int id)
        {
            bool lxLblExists = await LblBO.Exists(id);

            if (!lxLblExists)
            {
                return(NotFound());
            }
            var lxRslt = await LblBO.Delete(id);

            var lxId = lxRslt.NewId;

            return(NoContent());
        }