Created
December 23, 2015 15:22
-
-
Save rionmonster/7a5a0237b7a3c10806b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select asp-for="Organization" asp-items="ViewBag.Organizations" class="form-control custom-select"> | |
<option>Please select an Organization</option> | |
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<IActionResult> CreateGroup() | |
{ | |
ViewBag.Organizations = new SelectList(await _context.GetOrganizations(),"OrganizationGuid","Name",{hardcoded-guid here}); | |
return View(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment