public PartialViewResult Edit(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey) { var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject; var viewModel = new EditViewModel(fundingSourceCustomAttributeType); return(ViewEdit(viewModel, fundingSourceCustomAttributeType)); }
public PartialViewResult DeleteFundingSourceCustomAttributeType(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey) { var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject; var viewModel = new ConfirmDialogFormViewModel(fundingSourceCustomAttributeType.FundingSourceCustomAttributeTypeID); return(ViewDeleteFundingSourceCustomAttributeType(fundingSourceCustomAttributeType, viewModel)); }
public ViewResult Detail(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey) { var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject; var viewData = new DetailViewData(CurrentFirmaSession, fundingSourceCustomAttributeType); return(RazorView <Detail, DetailViewData>(viewData)); }
public ActionResult Edit(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey, EditViewModel viewModel) { var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject; if (!ModelState.IsValid) { return(ViewEdit(viewModel, fundingSourceCustomAttributeType)); } viewModel.UpdateModel(fundingSourceCustomAttributeType, CurrentFirmaSession); return(new ModalDialogFormJsonResult()); }
public ActionResult DeleteFundingSourceCustomAttributeType(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey, ConfirmDialogFormViewModel viewModel) { var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject; if (!ModelState.IsValid) { return(ViewDeleteFundingSourceCustomAttributeType(fundingSourceCustomAttributeType, viewModel)); } var message = $"{FieldDefinitionEnum.FundingSourceCustomAttribute.ToType().GetFieldDefinitionLabel()} '{fundingSourceCustomAttributeType.FundingSourceCustomAttributeTypeName}' successfully deleted!"; fundingSourceCustomAttributeType.DeleteFull(HttpRequestStorage.DatabaseEntities); SetMessageForDisplay(message); return(new ModalDialogFormJsonResult()); }
public ContentResult Description(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey) { return(Content(fundingSourceCustomAttributeTypePrimaryKey.EntityObject.FundingSourceCustomAttributeTypeDescription)); }