Ejemplo n.º 1
0
 public IActionResult AlienPropertiesAction(string alienkey, string propertykey, string newproperty, string activity)
 {
     model = new AlienModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     if (activity == "Connect")
     {
         model.ConnectProperty(alienkey, propertykey);
     }
     else if (activity == "Add")
     {
         model.AddProperty(newproperty);
     }
     return(RedirectToAction("ManageAlienProperties", new { @id = alienkey }));
 }