Ejemplo n.º 1
0
        public ActionResult Guest()
        {
            CommunicationWithController cwc = new CommunicationWithController();
            ReviewesList reviewes           = new ReviewesList(cwc.GetReviews() as List <Review>);

            reviewes.List.Sort();
            return(View(reviewes));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            CommunicationWithController cwc = new CommunicationWithController();
            ArticlesList articles           = new ArticlesList(cwc.GetArticles() as List <Article>);

            articles.List.Sort();
            return(View(articles));
        }
Ejemplo n.º 3
0
        public ActionResult Guest(FormCollection form)
        {
            CommunicationWithController cwc = new CommunicationWithController();

            cwc.CreateReview(form["Name"], form["Text"]);
            ReviewesList reviewes = new ReviewesList(cwc.GetReviews() as List <Review>);

            reviewes.List.Sort();
            return(View(reviewes));
        }