public async Task <IActionResult> Create([Bind("AppTenantId,Name,Title,Hostname,ThemeName,ThemeId,ConnectionString,Folder,RequireSSL,OwnerUserName,TrialEndDate,CreateDate")] AppTenant appTenant) { if (ModelState.IsValid) { _context.Add(appTenant); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["ThemeId"] = new SelectList(_context.Themes, "Id", "CreatedBy", appTenant.ThemeId); return(View(appTenant)); }