- Timestamp:
- 06/12/13 16:34:04 (12 years ago)
- Location:
- branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business/BillingService.cs
r9602 r9619 29 29 } 30 30 31 public IList<Product> GetProductByName(string productName) { 32 //TODO: Authentication 33 //TODO: Enable Transaction 34 return BillingDao.FindProdcutBy(prod => prod.Name == productName).ToList(); 35 } 36 31 37 #endregion 32 38 … … 42 48 //TODO: Authentication 43 49 //TODO: Enable Transaction 44 return BillingDao.FindOrderBy(order => order.State ==state).ToList();50 return BillingDao.FindOrderBy(order => order.StateValue == (int)state).ToList(); 45 51 } 46 52 … … 50 56 User user = GetUser(userName); 51 57 return BillingDao.FindOrderBy(order => order.User == user).ToList(); 58 } 59 60 public void UpdateOrder(Order order) { 61 throw new System.NotImplementedException(); 52 62 } 53 63 … … 79 89 } 80 90 91 public IList<UsageRecord> GetUsageRecords(string username, System.DateTime from, System.DateTime to) { 92 throw new System.NotImplementedException(); 93 } 94 81 95 #endregion 82 96 -
branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business/MockupBillingService.cs
r9602 r9619 118 118 return null; 119 119 } 120 121 #region IOptimizationBilling Members 122 123 124 public IList<Model.Product> GetProductByName(string productName) { 125 throw new NotImplementedException(); 126 } 127 128 public void UpdateOrder(Model.Order order) { 129 throw new NotImplementedException(); 130 } 131 132 public IList<Model.UsageRecord> GetUsageRecords(string username, DateTime from, DateTime to) { 133 throw new NotImplementedException(); 134 } 135 136 #endregion 120 137 } 121 138 }
Note: See TracChangeset
for help on using the changeset viewer.