Exemple #1
0
        /// <summary>
        /// 新增图片信息
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="callback"></param>
        public void CreateUnifiedImage(UnifiedImageVM vm, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            string relativeUrl = "/MKTService/UnifiedImage/Create";
            var    entity      = vm.ConvertVM <UnifiedImageVM, ECCentral.BizEntity.MKT.UnifiedImage>();

            restClient.Create(relativeUrl, entity, callback);
        }
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     _currentVM            = new UnifiedImageVM();
     filter                = new UnifiedImageQueryFilterVM();
     facade                = new UnifiedImageFacade(this);
     this.Grid.DataContext = filter;
     this.DataGrid.Bind();
 }