Example #1
0
        static void Main(string[] args)
        {
            var container       = AutofacBuilder.ConfigureContainer("DefaultConnection");
            var employeeService = container.Resolve(typeof(IEmployeeService)) as IEmployeeService;

            employeeService.AddEmployee(new NTierApp.BLL.Models.EmployeeModel {
                FirstName = "Alex", LastName = "Protskevich"
            });
            var employees = employeeService.GetAllEmloyees();
        }