Exemple #1
0
        public async Task <IActionResult> Delete(MenuItem menuItem)
        {
            if (!await iMenuItemRepository.DeleteMenuItemPost(menuItem, iEnvironment.WebRootPath))
            {
                return(NotFound());
            }

            return(RedirectToAction(nameof(Index)));
        }