public async Task <JsonResult> getAllPickUpRoutes(String tripId) { var pickUpRoutes = await Logical.GetAllPickuproutes(tripId); pickUpRoutes.Object = pickUpRoutes.Object.OrderBy(p => p.TerminalName).ToList(); return(new JsonResult { Data = pickUpRoutes, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }