Beispiel #1
0
        public async Task <IActionResult> removeItem(int id)
        {
            await BlockList.deleteItem(Models.User.current, id);

            if (getPersistantData <BlockListVM>().items != null)
            {
                return(RedirectToAction("ListItems"));
            }
            else
            {
                return(RedirectToAction("Index"));
            }
        }