public ActionResult Details(int id)
        {
            EmployeeContext employeeContext = new EmployeeContext();

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

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

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