private void Add() { GetBooking c = new GetBooking(); c = _apiRequester.Create(c, "booking"); Items = LoadItems(); //Items.Add(new BookingViewModel(c)); }
private void Add() { GetComment c = new GetComment(); c = _apiRequester.Create(c, "comment"); Items = LoadItems(); //Items.Add(new CommentViewModel(c)); }
private void Add() { GetReply c = new GetReply(); c = _apiRequester.Create(c, "reply/comment/" + CommentId); Items = LoadItems(); //Items.Add(new ReplyViewModel(c)); }
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")); } }