public ActionResult StarBoard(int studioid) { var starService = new StarService(); try { var stars = starService.GetClientVisits("", "", studioid); var model = new StarBoardViewModel() { Stars = stars }; return(View(model)); } catch (Exception e) { return(RedirectToAction("StudioNotSetup", new { message = e.Message })); } }
public ActionResult NewStarBoard(StarLoadViewModel starLoad) { var starService = new StarService(); try { var stars = starService.GetClientVisits(starLoad.Username, starLoad.Password, starLoad.StudioID); var model = new StarBoardViewModel() { Stars = stars }; return(View("StarBoard", model)); } catch (Exception e) { return(RedirectToAction("StudioNotSetup")); } }