示例#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));
 }