fixes Client creation page
This commit is contained in:
parent
9d22a93eb0
commit
19c2864657
1 changed files with 4 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
using Microsoft.AspNet.Mvc.Rendering;
|
using Microsoft.AspNet.Mvc.Rendering;
|
||||||
using Microsoft.Data.Entity;
|
using Microsoft.Data.Entity;
|
||||||
|
using System.Collections.Generic;
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
using Yavsc.Models.Auth;
|
using Yavsc.Models.Auth;
|
||||||
|
|
||||||
|
|
@ -42,6 +43,7 @@ namespace Yavsc.Controllers
|
||||||
// GET: Client/Create
|
// GET: Client/Create
|
||||||
public IActionResult Create()
|
public IActionResult Create()
|
||||||
{
|
{
|
||||||
|
SetAppTypesInputValues();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,8 +64,7 @@ namespace Yavsc.Controllers
|
||||||
}
|
}
|
||||||
private void SetAppTypesInputValues()
|
private void SetAppTypesInputValues()
|
||||||
{
|
{
|
||||||
ViewData["Type"] =
|
IEnumerable<SelectListItem> types = new SelectListItem[] {
|
||||||
new SelectListItem[] {
|
|
||||||
new SelectListItem {
|
new SelectListItem {
|
||||||
Text = ApplicationTypes.JavaScript.ToString(),
|
Text = ApplicationTypes.JavaScript.ToString(),
|
||||||
Value = ((int) ApplicationTypes.JavaScript).ToString() },
|
Value = ((int) ApplicationTypes.JavaScript).ToString() },
|
||||||
|
|
@ -72,6 +73,7 @@ namespace Yavsc.Controllers
|
||||||
Value = ((int) ApplicationTypes.NativeConfidential).ToString()
|
Value = ((int) ApplicationTypes.NativeConfidential).ToString()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
ViewData["Type"] = types;
|
||||||
}
|
}
|
||||||
// GET: Client/Edit/5
|
// GET: Client/Edit/5
|
||||||
public async Task<IActionResult> Edit(string id)
|
public async Task<IActionResult> Edit(string id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue