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()); }
public FrmEmployee() { InitializeComponent(); employee = new BL.Employee(this); this.dataGridView1.AllowUserToAddRows = false; }
protected void Page_Load(object sender, EventArgs e) { _employee = new BL.Employee(); }
public LogIn() { InitializeComponent(); emp = new BL.Employee(); }