public ActionResult Created(string key) { var vm = new NewApiUserViewModel { Breadcrumb = new List<Breadcrumb> { Breadcrumb.Home, }, MetaDescription = "API-nøgle klar", ApiUser = (new DBDataContext()).ApiUsers.Single(_ => _.ApiKey == key), }; return View("Created", vm); }
public ActionResult New() { var vm = new NewApiUserViewModel { Breadcrumb = new List<Breadcrumb> { Breadcrumb.Home, new Breadcrumb("Nøgle", "ApiRegistration", "New") }, MetaDescription = "Lav API-nøgle til Folkets Ting API", ApiUser = new ApiUser(), }; return View("New", vm); }
public ActionResult Example() { var vm = new NewApiUserViewModel { Breadcrumb = new List<Breadcrumb> { Breadcrumb.Home, new Breadcrumb("Nøgle", "ApiRegistration", "New"), new Breadcrumb("Eksempel", "ApiRegistration", "Example") }, MetaDescription = "Se eksempel på API brug", ApiUser = new ApiUser(), }; return View("Example", vm); }