Пример #1
0
        public async Task <ActionResult> Delete(int id)
        {
            if ((await themeService.ExistsTheme(id)) == false)
            {
                return(NotFound());
            }

            try
            {
                await themeService.Delete(id);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }