Пример #1
0
        public async Task <IActionResult> DeleteConfirmed(string id)
        {
            try
            {
                await _schoolclassService.DeleteAsync(id);

                return(RedirectToAction(nameof(Index)));
            }
            catch (ServiceLayerException)
            {
                return(StatusCode(500));
            }
        }
Пример #2
0
        public async Task <IActionResult> DeleteConfirmed(string id)
        {
            await _schoolclassService.DeleteAsync(id);

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