コード例 #1
0
ファイル: ReportManager.cs プロジェクト: orlfi/GeekBrains
 public void PrintEmployeesReports()
 {
     foreach (var item in _employees.GetAll())
     {
         Console.WriteLine("{0} {1}", item.Name, item.Email);
         foreach (var order in item.Orders)
         {
             Console.WriteLine("\t{0,-20} {1,10} {2,10} {3,10}", order.Product.Name, order.Product.Price, order.Count, order.Total);
         }
     }
 }
コード例 #2
0
 public List <Memory> GetAll()
 {
     return(_repo.GetAll());
 }
コード例 #3
0
 public ActionResult Index()
 {
     
     return View(mRep.GetAll(@Session["username"].ToString())); 
 }