Exemplo n.º 1
0
        // GET api/<controller>
        //public IEnumerable<string> Get()
        //{
        //    return new string[] { "value1", "value2" };
        //}

        // GET api/<controller>/5
        public string Get(DateTime date)
        {
            ReservationManager reservationManager = new ReservationManager();
            var monthReservationInfo = reservationManager.CalculateReservations(date.Year, date.Month);

            var result = Newtonsoft.Json.JsonConvert.SerializeObject(monthReservationInfo);

            return(result);
        }