Beispiel #1
0
 public IActionResult ShipPropertiesAction(string shipkey, string propertykey, string newproperty, string activity)
 {
     model = new ShipModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     if (activity == "Connect")
     {
         model.ConnectProperty(shipkey, propertykey);
     }
     else if (activity == "Add")
     {
         model.AddProperty(newproperty);
     }
     return(RedirectToAction("ManageShipProperties", new { @id = shipkey }));
 }