public PartialViewResult DeleteOrganizationType(OrganizationTypePrimaryKey organizationTypePrimaryKey) { var organizationType = organizationTypePrimaryKey.EntityObject; var viewModel = new ConfirmDialogFormViewModel(organizationType.OrganizationTypeID); return(ViewDeleteOrganizationType(organizationType, viewModel)); }
public PartialViewResult EditOrganizationType(OrganizationTypePrimaryKey organizationTypePrimaryKey) { var organizationType = organizationTypePrimaryKey.EntityObject; var viewModel = new EditOrganizationTypeViewModel(organizationType); return(ViewEditOrganizationType(viewModel)); }
public ActionResult DeleteOrganizationType(OrganizationTypePrimaryKey organizationTypePrimaryKey, ConfirmDialogFormViewModel viewModel) { var organizationType = organizationTypePrimaryKey.EntityObject; if (!ModelState.IsValid) { return(ViewDeleteOrganizationType(organizationType, viewModel)); } organizationType.DeleteFull(HttpRequestStorage.DatabaseEntities); return(new ModalDialogFormJsonResult()); }
public ActionResult EditOrganizationType(OrganizationTypePrimaryKey organizationTypePrimaryKey, EditOrganizationTypeViewModel viewModel) { var organizationType = organizationTypePrimaryKey.EntityObject; if (!ModelState.IsValid) { return(ViewEditOrganizationType(viewModel)); } viewModel.UpdateModel(organizationType, CurrentPerson); return(new ModalDialogFormJsonResult()); }