Ejemplo n.º 1
0
        private void Add()
        {
            GetBooking c = new GetBooking();

            c     = _apiRequester.Create(c, "booking");
            Items = LoadItems();
            //Items.Add(new BookingViewModel(c));
        }
Ejemplo n.º 2
0
        private void Add()
        {
            GetComment c = new GetComment();

            c     = _apiRequester.Create(c, "comment");
            Items = LoadItems();
            //Items.Add(new CommentViewModel(c));
        }
Ejemplo n.º 3
0
        private void Add()
        {
            GetReply c = new GetReply();

            c     = _apiRequester.Create(c, "reply/comment/" + CommentId);
            Items = LoadItems();
            //Items.Add(new ReplyViewModel(c));
        }
Ejemplo n.º 4
0
        public ActionResult Comment(G.Comment comment)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    _apiRequester.Create(comment, "comment");
                    return(RedirectToAction(nameof(Details), new { id = comment.EventId }));
                }

                return(View(comment));
            }
            catch
            {
                return(View("Error"));
            }
        }