public GenericService() { employeeRepository = new EmployeeRepository(); aboutRepository = new AboutRepository(); producerRepository = new ProducerRepository(); categoryRepository = new CategoryRepository(); productRepository = new ProductRepository(); productDetailsRepository = new ProductDetailsRepository(); postRepository = new PostRepository(); restaurantRepository = new RestaurantRepository(); videoRepository = new VideoRepository(); }
// Emp e = new Emp(); // emp1 e = new emp1(); //public List<EmpData> DBgetAllEmployees() //{ // return e.DBgetAllEmployees(); // // new List<EmpData>(); //} public EmployeeBLRepository(int x) { // //IemployeeRepository e; if (x == 1) { e = new Emp(); } if (x == 2) { e = new emp1(); } }
public groupsController(IGroupRepository groupRepository, IProjectRepository projectRepository, IemployeeRepository employeeRepository) { this.groupRepository = groupRepository; this.projectRepository = projectRepository; this.employeeRepository = employeeRepository; }
public EmployeeController(IemployeeRepository employeeRepository, IFavoriteRepository favoriteRepository, IGroupRepository groupRepository) { this.employeeRepository = employeeRepository; this.favoriteRepository = favoriteRepository; this.groupRepository = groupRepository; }