コード例 #1
0
        public PartialViewResult Edit(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey)
        {
            var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject;
            var viewModel = new EditViewModel(fundingSourceCustomAttributeType);

            return(ViewEdit(viewModel, fundingSourceCustomAttributeType));
        }
コード例 #2
0
        public PartialViewResult DeleteFundingSourceCustomAttributeType(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey)
        {
            var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject;
            var viewModel = new ConfirmDialogFormViewModel(fundingSourceCustomAttributeType.FundingSourceCustomAttributeTypeID);

            return(ViewDeleteFundingSourceCustomAttributeType(fundingSourceCustomAttributeType, viewModel));
        }
コード例 #3
0
        public ViewResult Detail(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey)
        {
            var fundingSourceCustomAttributeType = fundingSourceCustomAttributeTypePrimaryKey.EntityObject;
            var viewData = new DetailViewData(CurrentFirmaSession, fundingSourceCustomAttributeType);

            return(RazorView <Detail, DetailViewData>(viewData));
        }
コード例 #4
0
        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());
        }
コード例 #5
0
        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());
        }
コード例 #6
0
 public ContentResult Description(FundingSourceCustomAttributeTypePrimaryKey fundingSourceCustomAttributeTypePrimaryKey)
 {
     return(Content(fundingSourceCustomAttributeTypePrimaryKey.EntityObject.FundingSourceCustomAttributeTypeDescription));
 }