Пример #1
0
 public IActionResult RacePropertiesAction(string racekey, string propertykey, string newproperty, string activity)
 {
     model = new RaceModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword"));
     if (activity == "Connect")
     {
         model.ConnectProperty(racekey, propertykey);
     }
     else if (activity == "Add")
     {
         model.AddProperty(newproperty);
     }
     return(RedirectToAction("ManageRaceProperties", new { @id = racekey }));
 }