Ejemplo n.º 1
0
 public ActionResult Index(HomeIndexViewModel model, int id)
 {
     var memberIndexViewModel = new MemberIndexViewModel
                                    {
                                        NavigationModel = model,
                                        Roles = _service.GetRoles()
                                    };
     return View(memberIndexViewModel);
 }
Ejemplo n.º 2
0
 public ActionResult List(int id, HomeIndexViewModel homeIndexViewModel)
 {
     var model = new FileListViewModel{Files = _service.Dal.FileProvider.Get()};
     model.NavigationModel = homeIndexViewModel;
     return View(model);
 }
Ejemplo n.º 3
0
 public ActionResult Logon(HomeIndexViewModel homeIndexViewModel)
 {
     return RedirectToAction("Login", new {id = _service.GetHomePage().Id});
 }
Ejemplo n.º 4
0
 public ActionResult Login(int id, HomeIndexViewModel homeIndexViewModel)
 {
     var model = new LoginViewModel {};
     model.NavigationModel = homeIndexViewModel;
     return View(model);
 }
Ejemplo n.º 5
0
 public ActionResult ChangePassword(int id, HomeIndexViewModel navModel)
 {
     var model = new PasswordChangeViewModel { };
     model.NavigationModel = navModel;
     return View(model);
 }
Ejemplo n.º 6
0
 public ActionResult List(int id, HomeIndexViewModel homeIndexViewModel)
 {
     var model = new ImageListViewModel{Images = _service.GetImages()};
     model.NavigationModel = homeIndexViewModel;
     return View(model);
 }
Ejemplo n.º 7
0
 public ActionResult SendMessage(int? id, string pageTitle, HomeIndexViewModel model, Message message, bool userMode = false)
 {
     ViewBag.Service = _service;
     _service.SendMessage(message);
     if(message.IsReview)
         TempData["message"] = "Thanks for your review!!";
     else
         TempData["message"] = "Your message has been sent";
     return RedirectToAction("Index", new {id = id});
 }
Ejemplo n.º 8
0
 public ActionResult Index(int? id, HomeIndexViewModel model, bool userMode = false)
 {
     ViewBag.Service = _service;
     return View(model);
 }