public ResultDTO AddExt(Jinher.AMP.BTP.Deploy.CategoryInnerBrandDTO model)
        {
            try
            {
                var categoryInnerBrand = CategoryInnerBrand.CreateCategoryInnerBrand();

                categoryInnerBrand.BrandId      = model.BrandId;
                categoryInnerBrand.Brandname    = model.Brandname;
                categoryInnerBrand.CategoryId   = model.CategoryId;
                categoryInnerBrand.CategoryName = model.CategoryName;
                categoryInnerBrand.SubId        = model.SubId;
                categoryInnerBrand.SubName      = model.SubName;
                categoryInnerBrand.SubTime      = DateTime.Now;
                categoryInnerBrand.EntityState  = System.Data.EntityState.Added;
                ContextSession contextSession = ContextFactory.CurrentThreadContext;
                contextSession.SaveObject(categoryInnerBrand);
                contextSession.SaveChanges();
                return(new ResultDTO {
                    ResultCode = 0, Message = "", isSuccess = true
                });
            }
            catch (Exception ex)
            {
                LogHelper.Error(string.Format("添加添加品牌分类关系发生错误。参数:{0}", JsonHelper.JsonSerializer(model)), ex);
                return(new ResultDTO {
                    ResultCode = 1, Message = "Error", isSuccess = false
                });
            }
        }
 public Jinher.AMP.BTP.Deploy.CustomDTO.ResultDTO Add(Jinher.AMP.BTP.Deploy.CategoryInnerBrandDTO model)
 {
     base.Do();
     return(this.Command.Add(model));
 }