public ActionResult Admin(string action = "error") { vMs.GetIP(); if (action == "error") { } else if (action == "exit") { return(View("~/Views/Authorization/Authorization.cshtml")); } else if (action == "registration") { LoadRegistrationPage(); return(View("~/Views/Registration/Registration.cshtml")); } else if (action.StartsWith("add")) { vMs.AddIp(action); } else if (action.StartsWith("delete")) { vMs.DeleteIp(action); } else { vMs.Commands(action); } vMs.GetIP(); GetVM(); return(View()); }
public new ActionResult User(string action = "exit") { if (action == "exit") { return(View("~/Views/Authorization/Authorization.cshtml")); } else { vMs.Commands(action); } GetUpdateVM(); return(View()); }