Ejemplo n.º 1
0
        /// <summary>
        /// the constructor for the controller
        /// </summary>
        /// <param name="dbContext">the composed context</param>
        public EmployeesController(IEmployeeManagementContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("the database context cannot be null");
            }

            this.db = dbContext;
        }
 public EmployeeRepository(IEmployeeManagementContext employeeManagementContext)
 {
     this.employeeManagementContext = employeeManagementContext;
 }