Beispiel #1
0
        public JsonResult CreateAfter(ShopInfo model)
        {
            Utility.ReturnData <string> returnData = new Utility.ReturnData <string>();
            ShopInfoBll shopBll = new ShopInfoBll();

            //UserPC _model = CacheHelp.Get("user") as UserPC;
            model.Relation       = 2;
            model.ContactPhone   = "";
            model.Address        = "";
            model.Range          = "";
            model.shopIMG        = "";
            model.WeixinMPID     = 0;
            model.Remarks        = "";
            model.AgentID        = AgentLoginUser.RoleID;
            model.ContactTEL     = "";
            model.Status         = 1;
            model.ChannelGroupID = 0;
            model.ProvinceID     = model.ProvinceID;
            model.CityID         = model.CityID;
            model.CountyID       = model.CountyID;
            model.EnterpriseID   = AgentLoginUser.UserBasic.EnterpriseID;
            returnData           = shopBll.Create(model);
            return(Json(returnData));
        }
 public JsonResult CreateAfter(ShopInfo model)
 {
     Utility.ReturnData<string> returnData = new Utility.ReturnData<string>();
     ShopInfoBll shopBll = new ShopInfoBll();
     //UserPC _model = CacheHelp.Get("user") as UserPC;
     model.Relation = 2;
     model.ContactPhone = "";
     model.Address = "";
     model.Range = "";
     model.shopIMG = "";
     model.WeixinMPID = 0;
     model.Remarks = "";
     model.AgentID = AgentLoginUser.RoleID;
     model.ContactTEL = "";
     model.Status = 1;
     model.ChannelGroupID = 0;
     model.ProvinceID = model.ProvinceID;
     model.CityID = model.CityID;
     model.CountyID = model.CountyID;
     model.EnterpriseID = AgentLoginUser.UserBasic.EnterpriseID;
     returnData = shopBll.Create(model);
     return Json(returnData);
 }