public ActionResult Index(GraphStory graphStory) { graphStory.user = graphStoryService.userInterface.getByUserName(graphstoryUserAuthValue); graphStory.mappedProductUserPurchases = graphStoryService.purchaseInterface.friendsPurchase(graphStory.user.userId); ViewBag.Title = "Products Purchased by Friends"; graphStory.showform = false; return(View(graphStory)); }
public ActionResult Index(GraphStory graphStory, string tag, string usercontent) { graphStory.user = graphStoryService.userInterface.getByUserName(graphstoryUserAuthValue); graphStory = graphStoryService.tagInterface.tagsInMyNetwork(graphStory); if (!String.IsNullOrEmpty(tag) && !String.IsNullOrEmpty(usercontent)) { graphStory.content = graphStoryService.contentInterface.getContentByTag(graphStory.user.username, tag, Boolean.Parse(usercontent)); } return(View(graphStory)); }
public ActionResult Add(GraphStory graphStory) { graphStory = graphStoryService.userInterface.save(graphStory); if (graphStory.haserror == false) { return(RedirectToRoute(new { controller = "Home", action = "msg", msg = "Thank you," + graphStory.user.username })); } else { ViewBag.error = graphStory.error; return(View("~/Views/Home/Index.cshtml")); } }
public ActionResult Index(GraphStory graphStory, double distance = 0, string productNodeId = "") { graphStory.user = graphStoryService.userInterface.getByUserName(graphstoryUserAuthValue); graphStory.mappedUserLocation = graphStoryService.userInterface.getUserLocation(graphstoryUserAuthValue); if (distance != 0) { if (!String.IsNullOrEmpty(productNodeId)) { graphStory.productNodeId = Convert.ToInt64(productNodeId); graphStory = graphStoryService.productInterface.getProduct(graphStory); graphStory = graphStoryService.locationInterface.returnLocationsWithinDistanceAndHasProduct(graphStory, graphStory.mappedUserLocation.lat, graphStory.mappedUserLocation.lon, distance); } else { graphStory.mappedLocations = graphStoryService.locationInterface.returnLocationsWithinDistance(graphStory.mappedUserLocation.lat, graphStory.mappedUserLocation.lon, distance, "business"); } } return(View(graphStory)); }