public static AomFieldObjectViewModel MapDbModelToViewModel(AomFieldObject dbModel)
        {
            var viewModel = new  AomFieldObjectViewModel();

            viewModel.ID             = dbModel.Id;
            viewModel.AomObjectId    = dbModel.AomObjectId;
            viewModel.AomFieldMetaId = dbModel.AomFieldMetaId;
            viewModel.Value          = dbModel.Value;
            return(viewModel);
        }
        public static AomFieldObject MapInsertModelToDbModel(AomFieldObjectViewModel model, AomFieldObject newDomainModel = null)
        {
            if (newDomainModel == null)
            {
                newDomainModel = new AomFieldObject();
            }

            newDomainModel.Id             = model.ID;
            newDomainModel.AomObjectId    = model.AomObjectId;
            newDomainModel.AomFieldMetaId = model.AomFieldMetaId;
            newDomainModel.Value          = model.Value;

            return(newDomainModel);
        }