public ActionResult EditTravelLineItem(GrantAllocationAwardTravelLineItemPrimaryKey grantAllocationAwardTravelLineItemPrimaryKey, EditGrantAllocationAwardTravelLineItemViewModel viewModel)
        {
            var travelLineItem = grantAllocationAwardTravelLineItemPrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(GrantAllocationAwardTravelLineItemViewEdit(viewModel));
            }
            viewModel.UpdateModel(travelLineItem);
            return(new ModalDialogFormJsonResult());
        }
        public ActionResult NewTravelLineItemFromGrantAllocationAward(GrantAllocationAwardPrimaryKey grantAllocationAwardPrimaryKey, EditGrantAllocationAwardTravelLineItemViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(GrantAllocationAwardTravelLineItemViewEdit(viewModel));
            }

            var grantAllocationAward = HttpRequestStorage.DatabaseEntities.GrantAllocationAwards.Single(ga => ga.GrantAllocationAwardID == viewModel.GrantAllocationAwardID);
            var travelLineItem       = GrantAllocationAwardTravelLineItem.CreateNewBlank(grantAllocationAward, GrantAllocationAwardTravelLineItemType.Transportation);

            viewModel.UpdateModel(travelLineItem);
            return(new ModalDialogFormJsonResult());
        }