/// <summary>
        /// 增删改
        /// </summary>
        /// <param name="saleShop_Member"></param>
        public void Insert(SaleShop_Member saleShop_Member)
        {
            //各个接口之间相互调用使用
            //[Interface] A _a = ((IContainer)HttpRuntime.Cache["containerKey"]).Resolve<A>();

            //this._iUnitOfWorkRepository.PersistCreationOf(saleShop_Member);
            this._iSaleShopMemberRepository.Create(saleShop_Member);
            this._iUnitOfWork.Commit();
        }
Esempio n. 2
0
        public Result testAddApi()
        {
            return(CommonResult(() =>
            {
                SaleShop_Member sm = new SaleShop_Member();
                sm.UserName = "******";
                sm.Password = "******";

                //调用业务层 接口
                this._iSaleShopMemberBusiness.Insert(sm);


                //返回结果
                return new Result()
                {
                    Data = null
                };
            }
                                , r => Console.WriteLine(r.ToJSON())));
        }