Exemplo n.º 1
0
        public IActionResult OnGetRemove(long id)
        {
            var result = _slideApplication.Remove(id);

            if (result.IsSucceeded)
            {
                return(RedirectToPage("./Index"));
            }
            Message = result.Message;
            return(RedirectToPage("./Index"));
        }
Exemplo n.º 2
0
        public IActionResult OnPostRemove(int id)
        {
            var result = _slideApplication.Remove(id);

            if (result.isSucceeded)
            {
                return(RedirectToPage("./Index"));
            }

            message = result.Message;
            return(RedirectToPage("./Index"));
        }
Exemplo n.º 3
0
        public IActionResult OnGetRemove(long id)
        {
            var operationResult = _slideApplication.Remove(id);

            return(RedirectToPage("Index"));
        }