public ActionResult DeleteClient(int SYSTEMID) { SYSTEMINFO entity = db.SYSTEMINFO.Find(SYSTEMID); db.SYSTEMINFO.Remove(entity); db.SaveChanges(); return(Redirect("Index")); }
public ActionResult DoRegistClient(SYSTEMINFO model) { model.FLOW = "Implicit"; model.ALLOWREMEMBERCONSENT = "false"; model.CLIENTURI = "https://identityserver.io"; db.SYSTEMINFO.Add(model); db.SaveChanges(); return(Redirect("Index")); }
public ActionResult RegistClient() { List <SelectListItem> consents = new List <SelectListItem>(); consents.Add(new SelectListItem { Value = "false", Text = "否" }); consents.Add(new SelectListItem { Value = "true", Text = "是" }); this.ViewData["consents"] = consents; SYSTEMINFO model = new SYSTEMINFO(); model.ALLOWEDSCOPES = "openid,logon"; return(View(model)); }