//GetTripByRoute

        public async Task <JsonResult> GetSchedule(int terminalId)
        {
            var schedules = await Logical.GetScheduleForTerminal(terminalId);

            schedules.Item1.Object = schedules.Item1.Object.Where(x => x.AvailableOnline.Equals(true)).ToList();

            return(new JsonResult {
                Data = schedules, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }