Пример #1
0
        public ICallCriteria Build(TableParameters parameters)
        {
            var url = string.Format("/table/?st=0&pid={0}&rid={1}&dt={2}&ps={3}",
                                    ConfigurationManager.AppSettings["PartnerId"],
                                    parameters.RestaurantId,
                                    parameters.DateTime.ToApiDateTimeFormat().UrlEncode(),
                                    parameters.PartySize);

            return new TableCallCriteria
                {
                    CallParameters = new CallParameters
                        {
                            Url = url,
                            HttpMethod = HttpMethod.Get
                        }
                };
        }
Пример #2
0
 public ViewResult Invoke(TableParameters parameters)
 {
     var criteria = _criteriaBuilder.Build(parameters);
     return View("Index", _responseViewModelBuilder.Build(criteria));
 }