public ActionResult CreateTheme(CreatingThemeViewModel theme) { var testRepo = new TestRepository(); var creatingTheme = new DataAccessLayer.Models.CreatingThemeModel { ThemeName = theme.ThemeName }; var res = testRepo.CreateTheme(creatingTheme); if (res == TestRepository.DefaultErrorCode) { return(Json(Resources.Resource.ERROR_ThemeExists)); } return(Json(string.Empty)); }
public ActionResult CreateTheme() { var creatingTheme = new CreatingThemeViewModel(); return(PartialView("_CreatingThemePartial", creatingTheme)); }