private void btnSave_Click(object sender, EventArgs e)
 {
     Mockata.Models.RealtimeReview parameter = new Mockata.Models.RealtimeReview();
     //parameter.FirstAnswer = icbeFirstAnswer.Value.ToString().ConvertToInteger();
     //parameter.SecondAnswer = icbeSecondAnswer.Value.ToString().ConvertToInteger();
     //parameter.thirdAnswer = icbeThirdAnswer.Value.ToString().ConvertToInteger();
     //parameter.tagsOfFirstAnswer = txtTagsOfFirstAnswer.Text;
     //parameter.tagsOfSecondAnswer = txtTagsOfSecondAnswer.Text;
     //parameter.tagsOfThirdAnswer = txtTagsOfThirdAnswer.Text;
     //parameter.checkInDate = string.Format("{0:yyyy-MM-dd}", deCheckIn.DateTime);
     //parameter.checkOutDate = string.Format("{0:yyyy-MM-dd}", deCheckOut.DateTime);
     //parameter.hotelId = txtHotelId.Text;
     //parameter.bookingId = txtBookingId.Text;
     //parameter.langId = txtLangId.Text;
     //parameter.siteId = txtSiteId.Text;
     Mockata.mockers.RealtimeReviewMocker mocker = new Mockata.mockers.RealtimeReviewMocker(parameter);
     string message = mocker.Mockup();
     if (!string.IsNullOrEmpty(message))
     {
         TNS.Win.Util.MessageDxUtil.ShowError(message);
     }
 }
        public ActionResult Create(FormCollection collection)
        {
            var parameter = new TNS.MVC4.Models.RealtimeReview();
            RequestHelper<TNS.MVC4.Models.RealtimeReview>.RequestPropertys(HttpContext.Request, ref parameter);
            string validateMessage = ValidateDuplicateReview(parameter);
            if (string.IsNullOrEmpty(validateMessage))
            {
                Mockata.mockers.RealtimeReviewMocker mocker = new Mockata.mockers.RealtimeReviewMocker(ConvertToMockataParameter(parameter));
                string message = mocker.Mockup();
                Msg = string.IsNullOrEmpty(message) ? new MessageInfo(true, "Success!") : new MessageInfo(false, "Failed!");
            }
            else
            {
                Msg = new MessageInfo(false, "Failed! " + validateMessage);
            }

            return Content(Msg.JsonSerialize(), "text/html;charset=UTF-8");
        }