Beispiel #1
0
        public async Task <ActionResult> Delete(int id, IFormCollection collection)
        {
            try
            {
                await CallApi.DeleteAsync(Request.Cookies["jwt"], "bills", id.ToString());

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }