コード例 #1
0
        /// <summary>
        /// 获取用户管理店铺列表
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        public ActionResult GetUserDistributor()
        {
            LayoutViewModel model = new LayoutViewModel();
            var             user  = model.GetSession().User;
            var             data  = Ioc.Get <IUserDistributorRLService>().GetUserDistributor(user.Id);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        /// <summary>
        /// 下单
        /// </summary>
        /// <param name="bind"></param>
        /// <returns></returns>
        public ActionResult PlaceAnOrder(MobileOrderBindModel bind)
        {
            LayoutViewModel mode = new LayoutViewModel();

            bind.BuyerId = mode.GetSession().User.Id;
            var data = Ioc.Get <IMobileOrderService>().PlaceAnOrder(bind);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }