public ActionResult Edit(int id, Models.Employee_Model new_value) { bll.Employee().Güncelle(id, new LogicLayer.Entities.Employee { name_surname = new_value.name, phone_number = new_value.phone_number, departman_id = bll.Department().Listele().First(x => x.name == new_value.departman).id }); return(RedirectToAction("Index")); }
public ActionResult Create(Models.Employee_Model value) { bll.Employee().Ekle(new LogicLayer.Entities.Employee { name_surname = value.name, phone_number = value.phone_number, departman_id = int.Parse(value.departman) }); return(RedirectToAction("Index")); }
public ActionResult Delete(int id, Models.Employee_Model old_value) { bll.Employee().Sil(id); return(RedirectToAction("Index")); }
public EmployeeCreate() { departments = new List <LogicLayer.Entities.Department>(); employee = new Models.Employee_Model(); }