Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        // 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();
            }
        }
Esempio n. 3
0
 public groupsController(IGroupRepository groupRepository, IProjectRepository projectRepository, IemployeeRepository employeeRepository)
 {
     this.groupRepository    = groupRepository;
     this.projectRepository  = projectRepository;
     this.employeeRepository = employeeRepository;
 }
Esempio n. 4
0
 public EmployeeController(IemployeeRepository employeeRepository, IFavoriteRepository favoriteRepository, IGroupRepository groupRepository)
 {
     this.employeeRepository = employeeRepository;
     this.favoriteRepository = favoriteRepository;
     this.groupRepository    = groupRepository;
 }