Example #1
0
        public async Task <JsonResult> getTravelDocumentType()
        {
            var traveldocument = await Logical.GetTravelDocuments();

            traveldocument.Object.Items = traveldocument.Object.Items.OrderBy(x => x.DocumentType).ToList();

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