private void SetOfficeIntoView(RealEstateOffice franchiseOffice) { var office = this.Offices.Add(); office.OfficeName = franchiseOffice.OfficeName; office.TotalSoldHouse = franchiseOffice.TotalHouseSold; office.TotalCommission = franchiseOffice.TotalCommission; office.AverageCommission = franchiseOffice.AveargeCommission; office.Link = "/RealSateFinal/RealEstateDetail/" + franchiseOffice.GetObjectID(); }
private void Handle(Input.CreateTrigger action) { Db.Scope(() => { var newOfficeData = new RealEstateOffice() { RealEstateInfo = this.Data as RealEstateInfo, OfficeName = this.NewOffice.OfficeName, }; var newOffice = this.Offices.Add(); newOffice.OfficeName = this.NewOffice.OfficeName; newOffice.Link = "/RealSateFinal/RealEstateDetail/" + newOfficeData.GetObjectID(); }); this.Transaction.Commit(); this.OpenModal = false; }