Exemplo n.º 1
0
        // Validate the theme is ok for exporting.
        public ActionResult ValidateExportTheme(int id)
        {
            // Check if the theme exists.
            if (!_themeRepository.DoesThemeExist(id))
            {
                return(SiteErrorHandler.GetBadRequestActionResult("Could not find the theme.", ""));
            }

            return(Json(new { themeId = id }, JsonRequestBehavior.AllowGet));
        }