コード例 #1
0
ファイル: RentBll.cs プロジェクト: Egor-Pavshuk/CarSharing
 public RentBll(OfferBll offerBll, string customerEmail, bool insuranceCase)
 {
     Customer       = new CustomerBll();
     OfferBll       = offerBll;
     StartDate      = DateTime.Now.Subtract(new TimeSpan(3, 0, 0, 0));
     Customer.Email = customerEmail;
     InsuranceCase  = insuranceCase;
 }
コード例 #2
0
ファイル: RentBll.cs プロジェクト: Egor-Pavshuk/CarSharing
 public int GetShareCost() => InsuranceCase?OfferBll.CountShareCost(DateTime.Now.Subtract(StartDate).Days) + 150 : OfferBll.CountShareCost(DateTime.Now.Subtract(StartDate).Days);