Example #1
0
        public ActionResult Details(int id)
        {
            EmployeeContext employeeContext = new EmployeeContext();

            BL.Employee employee = employeeContext.Employees.Single(x => x.EmployeeId == id);

            return(View(employee));
        }
Example #2
0
        public ActionResult Create(BL.Employee employee)
        {
            if (ModelState.IsValid)
            {
                BL.EmployeeBL employeeBL = new BL.EmployeeBL();

                employeeBL.AddEmmployee(employee);
                return(RedirectToAction("EmployeeBlList"));
            }
            return(View());
        }
Example #3
0
 public FrmEmployee()
 {
     InitializeComponent();
     employee = new BL.Employee(this);
     this.dataGridView1.AllowUserToAddRows = false;
 }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _employee = new BL.Employee();
 }
 public LogIn()
 {
     InitializeComponent();
        emp = new BL.Employee();
 }