Ejemplo n.º 1
0
		public IEnumerable<Department> get_all_sub_departments_in(Department department)
		{
            return repository.get_all<Department>().Where(x => x.parentId.HasValue);
		}
Ejemplo n.º 2
0
		public IEnumerable<Product> get_all_products_in(Department department)
		{
			throw new NotImplementedException();
		}
Ejemplo n.º 3
0
 public IEnumerable<Product> get_all_products_in(Department department)
 {
     return Enumerable.Range(1, 1000).Select(x => new Product {name = x.ToString("Product 0"),price=x});
 }
Ejemplo n.º 4
0
 public IEnumerable<Department> get_all_sub_departments_in(Department department)
 {
     return Enumerable.Range(1, 100).Select(x => new Department { name = x.ToString("Sub Department 0") });
 }
Ejemplo n.º 5
0
	    public bool department_has_sub_departments(Department department)
	    {
	        return repository.get_all<Department>().Any(x => x.parentId == department.id);
	    }
Ejemplo n.º 6
0
		public IEnumerable<Product> get_all_products_in(Department department)
		{
			return repository.get_all<Product>().Where(x => x.departmentId == department.id);
		}
Ejemplo n.º 7
0
 public IEnumerable<Product> get_all_products_in_department(Department department)
 {
     return Enumerable.Range(100, 10).Select(x => new Product() { name = x.ToString(" Product 0 ") });
 }
Ejemplo n.º 8
0
 public IEnumerable<Department> get_all_sub_departments_in(Department department)
 {
     return Enumerable.Range(100, 10).Select(x => new Department {name = string.Format("{0}, Sub Department {1}", department.name, x)});
 }
 public IEnumerable<Department> get_sub_departments_in(Department departmentname)
 {
     throw new NotImplementedException();
 }