private ActionResult PublishHouse(BuyViewHouse house)
 {
     if (BuildHouse(house))
     {
         HouseBuyInfo transferhouse = MapperCar(house);
         buyService.SaveBuyHouse(transferhouse);
         RunJob();
         FxCacheService.FxSite.GlobalCache cache = System.Web.Mvc.DependencyResolver.Current.GetService <FxCacheService.FxSite.GlobalCache>();
         cache.InfoPublishAllCountAdd();
         return(View("Success"));
     }
     return(View("FaildTransfer"));
 }
示例#2
0
 /// <summary>
 /// 车辆发布
 /// </summary>
 /// <param name="car">车辆求购信息视图模型</param>
 /// <returns>跳转成功页面或者失败页面</returns>
 private ActionResult PublishCar(BuyViewCar car)
 {
     if (BuildCar(car))
     {
         CarBuyInfo buycar = MapperCar(car);
         buyService.SaveBuyCar(buycar);
         RunJob();
         FxCacheService.FxSite.GlobalCache cache = System.Web.Mvc.DependencyResolver.Current.GetService <FxCacheService.FxSite.GlobalCache>();
         cache.InfoPublishAllCountAdd();
         return(View("Success"));
     }
     return(View("FaildTransfer"));
 }
 private ActionResult PublishCar(TransferViewCar car, List <HttpPostedFileBase> facefile, List <HttpPostedFileBase> otherfile, List <HttpPostedFileBase> badfile)
 {
     if (BuildCar(car, facefile, otherfile, badfile))
     {
         CarTransferInfo transfercar = MapperCar(car);
         transferService.SaveTransferCar(transfercar);
         RunJob();
         FxCacheService.FxSite.GlobalCache cache = System.Web.Mvc.DependencyResolver.Current.GetService <FxCacheService.FxSite.GlobalCache>();
         cache.InfoPublishAllCountAdd();
         return(View("Success"));
     }
     return(View("FaildTransfer"));
 }
 private ActionResult PublishGoods(BuyViewGoods goods, List <HttpPostedFileBase> facefile, List <HttpPostedFileBase> otherfile, List <HttpPostedFileBase> badfile)
 {
     if (BuildGoods(goods, facefile, otherfile, badfile))
     {
         GoodsBuyInfo transfergoods = MapperGoods(goods);
         buyService.SaveBuyGoods(transfergoods);
         RunJob();
         FxCacheService.FxSite.GlobalCache cache = System.Web.Mvc.DependencyResolver.Current.GetService <FxCacheService.FxSite.GlobalCache>();
         cache.InfoPublishAllCountAdd();
         return(View("Success"));
     }
     return(View("FaildTransfer"));
 }