public ActionResult Edit(GrantAllocationAwardPrimaryKey grantAllocationAwardPrimaryKey, EditGrantAllocationAwardViewModel viewModel)
        {
            var grantAllocationAward = grantAllocationAwardPrimaryKey.EntityObject;

            if (!ModelState.IsValid)
            {
                return(GrantAllocationAwardViewEdit(viewModel));
            }
            viewModel.UpdateModel(grantAllocationAward);
            return(new ModalDialogFormJsonResult());
        }
        public ActionResult NewForAFocusArea(FocusAreaPrimaryKey focusAreaPrimaryKey, EditGrantAllocationAwardViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(GrantAllocationAwardViewEdit(viewModel));
            }
            var grantAllocation      = HttpRequestStorage.DatabaseEntities.GrantAllocations.Single(ga => ga.GrantAllocationID == viewModel.GrantAllocationID);
            var focusArea            = HttpRequestStorage.DatabaseEntities.FocusAreas.Single(fa => fa.FocusAreaID == viewModel.FocusAreaID);
            var grantAllocationAward = GrantAllocationAward.CreateNewBlank(grantAllocation, focusArea);

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