private ViewResult ViewUpdateLandUseBlockGeometry(UpdateLandUseBlockGeometryViewModel viewModel) { var newGisUploadUrl = SitkaRoute <LandUseBlockUploadController> .BuildUrlFromExpression(c => c.UpdateLandUseBlockGeometry()); var viewData = new UpdateLandUseBlockGeometryViewData(CurrentPerson, newGisUploadUrl); return(RazorView <UpdateLandUseBlockGeometry, UpdateLandUseBlockGeometryViewData, UpdateLandUseBlockGeometryViewModel>(viewData, viewModel)); }
public ViewResult UpdateLandUseBlockGeometry() { var viewModel = new UpdateLandUseBlockGeometryViewModel { PersonID = CurrentPerson.PersonID }; return(ViewUpdateLandUseBlockGeometry(viewModel)); }
public ActionResult UpdateLandUseBlockGeometry(UpdateLandUseBlockGeometryViewModel viewModel) { if (!ModelState.IsValid) { return(ViewUpdateLandUseBlockGeometry(viewModel)); } viewModel.UpdateModel(CurrentPerson); SetMessageForDisplay("The Land Use Blocks were successfully added to the staging area. The staged Land Use Blocks will be processed and added to the system. You will receive an email notification when this process completes or if errors in the upload are discovered during processing."); return(Redirect(SitkaRoute <LandUseBlockController> .BuildUrlFromExpression(c => c.Index()))); }