Ejemplo n.º 1
0
        public PartialViewResult EmbeddedArticle(string articlehandle)
        {
            ExtronWeb.Models.Article article        = new ExtronWeb.Models.Article();
            InsiderEntity            currentInsider = Insider.GetCurrentInsider();
            var model = article.GetArticle(articlehandle, currentInsider);

            return(PartialView("../Widgets/EmbeddedArticle", model));
        }
Ejemplo n.º 2
0
        public IHttpActionResult Get()
        {
            InsiderEntity insider = Insider.GetCurrentInsider();

            if (insider == null)
            {
                return(NotFound());
            }
            return(Ok(insider));
        }
Ejemplo n.º 3
0
        public IHttpActionResult GetPricing(string partnum)
        {
            InsiderEntity       insider = Insider.GetCurrentInsider();
            AvantePricingEntity pricing = Price.GetInsiderPrice(partnum, insider);
            ProdPricing         result  = new ProdPricing()
            {
                YourPrice = pricing.DealerPrice.GetPrice(),
                MSRP      = pricing.ListPrice.GetPrice()
            };

            return(Ok(result));
        }
Ejemplo n.º 4
0
        // GET: Article
        public ActionResult Index(string articlehandle)
        {
            ExtronWeb.Models.Article article        = new ExtronWeb.Models.Article();
            InsiderEntity            currentInsider = Insider.GetCurrentInsider();
            var model = article.GetArticle(articlehandle, currentInsider);

            if (model != null)
            {
                return(View(model));
            }
            return(Redirect("/"));
        }
Ejemplo n.º 5
0
        public JsonResult SubmitTopicFeedback(ExtronWeb.Models.Help.Help.FeedbackEntity feedback)
        {
            var model = new TopicViewModel();

            InsiderEntity currentInsider = Insider.GetCurrentInsider();

            if (currentInsider.Email == null)
            {
                feedback.Email = "NO_LOGIN";
            }
            else
            {
                feedback.Email = currentInsider.Email;
            }

            feedback.UserAgent = HttpContext.Request.UserAgent;
            feedback.IPAddress = Request.UserHostAddress;

            if (model.SubmitTopicFeedback(feedback))
            {
                return(Json(feedback));
            }
            return(null);
        }
Ejemplo n.º 6
0
        public ActionResult Login()
        {
            InsiderEntity currentInsider = Insider.GetCurrentInsider();

            return(View(currentInsider));
        }