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); } } }
public List <Memory> GetAll() { return(_repo.GetAll()); }
public ActionResult Index() { return View(mRep.GetAll(@Session["username"].ToString())); }