Ejemplo n.º 1
0
        public ActionResult IndexForLocation(int locationId)
        {
            user = userServices.FindUser(this.User.Identity.Name);
              systemUser = userServices.FindUser("system");
              IList<DiveSite> diveSites;

              diveSites = diveSiteServices.GetDiveSitesForLocation(locationId, systemUser.Id, user.Id);
              DiveSitesIndexModel viewModel = new DiveSitesIndexModel();
              viewModel.DiveSiteList = diveSites;
              return View("Index", viewModel);
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            user = userServices.FindUser(this.User.Identity.Name);
              DiveSitesIndexModel model = new DiveSitesIndexModel();

              IList<DiveSite> diveSites = diveSiteServices.GetAllForUser(user.Id);
              diveSites = diveSites.OrderBy(m => m.Title).ToList();
              model.DiveSiteList = diveSites;

              return View(model);
        }