Install() публичный Метод

public Install ( string tenant ) : Frapid.WebsiteBuilder.Models.Themes.ThemeInfo
tenant string
Результат Frapid.WebsiteBuilder.Models.Themes.ThemeInfo
Пример #1
0
        private ActionResult Upload(ThemeUploader uploader)
        {
            try
            {
                uploader.Install();
            }
            catch (ThemeUploadException ex)
            {
                return this.AjaxFail(ex.Message, HttpStatusCode.BadRequest);
            }
            catch (ThemeInstallException ex)
            {
                return this.AjaxFail(ex.Message, HttpStatusCode.BadRequest);
            }

            return Json(new {success = true}, JsonRequestBehavior.AllowGet);
        }
Пример #2
0
        private ActionResult Upload(ThemeUploader uploader)
        {
            try
            {
                uploader.Install(this.Tenant);
            }
            catch(ThemeUploadException ex)
            {
                return this.Failed(ex.Message, HttpStatusCode.BadRequest);
            }
            catch(ThemeInstallException ex)
            {
                return this.Failed(ex.Message, HttpStatusCode.BadRequest);
            }

            return this.Ok();
        }