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")); }
private HouseBuyInfo MapperCar(BuyViewHouse house) { var info = new HouseBuyInfo(); info.Bill = house.Bill; info.HasFurniture = house.HasFurniture; info.CatagroyId = house.CatagroyId; info.AreaId = house.AreaId; info.RoomNumber = house.RoomNumber; info.Controller = this.ControllerName; info.Action = this.ActionName; info.CityId = house.CityId; info.Mark = house.Mark; info.Price = (int)house.Price; info.PublishTitle = house.Title; info.PublishUserEmail = house.Email; info.UserAccount = User.Identity.Name; return(info); }
private bool BuildHouse(BuyViewHouse car) { InitParas(); return(true); }
public ActionResult Properties(BuyViewHouse house) { return(PublishHouse(house)); }