public IActionResult CreateTrail(Trail form) { if (tr == null) { tr = new TrailFactory(); } tr.Add(form); return(RedirectToAction("Index")); }
public IActionResult Index() { if (tr == null) { tr = new TrailFactory(); } IEnumerable <Trail> found = tr.FindAll(); ViewBag.TrailList = found; return(View()); }
public IActionResult Trail(int id) { if (tr == null) { tr = new TrailFactory(); } Trail found = tr.FindByID(id); ViewBag.Trail = found; return(View()); }
public HomeController() { //Instantiate a UserFactory object that is immutable (READONLY) //This establishes the initial DB connection for us. trailFactory = new TrailFactory(); }
public NewTrailController() { trailFactory = new TrailFactory(); }
public HomeController(TrailFactory connect) { trailFactory = connect; }
public HomeController(TrailFactory uFactory) { _TrailFactory = uFactory; }
public LostInTheWoodsController() { trailFactory = new TrailFactory(); }
//constructor public HomeController() { _dapperTrail = new TrailFactory(); }
public HomeController(TrailFactory tf) { trailFactory = tf; }
public HomeController(TrailFactory tFactory) { _trailFactory = tFactory; }
public TrailController(TrailFactory trail) { trailFactory = trail; }
public HomeController(TrailFactory trailConnect) { trailFactory = trailConnect; }
public TrailController(TrailFactory tf) { trailfactory = tf; }
public TrailsController(DbConnector connect) { trailFactory = new TrailFactory(); }
public TrailController() { _trailFactory = new TrailFactory(); }
public HomeController() { trailFactory = new TrailFactory(); }
public TrailsController(TrailFactory tFactory) { _trailFactory = tFactory; }