public ActionResult Delete(int id, LoaiKhenThuong loaiKhenThuong)
 {
     loaiKhenThuong = database.LoaiKhenThuongs.Where(x => x.IdloaiKt == id).FirstOrDefault();
     database.Remove(loaiKhenThuong);
     database.SaveChanges();
     return(RedirectToAction("Index", "DanhGia"));
 }
 public ActionResult Delete(int id, ChucVu chucVu)
 {
     chucVu = database.ChucVus.Where(x => x.Idcv == id).FirstOrDefault();
     database.Remove(chucVu);
     database.SaveChanges();
     return(RedirectToAction("Index"));
 }
예제 #3
0
 public ActionResult Delete(int id, KhenThuong khenThuong)
 {
     khenThuong = database.KhenThuongs.Where(x => x.Idkt == id).FirstOrDefault();
     database.Remove(khenThuong);
     database.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Delete(int id, KyLuat kyLuat)
 {
     kyLuat = database.KyLuats.Where(x => x.Idkl == id).FirstOrDefault();
     database.Remove(kyLuat);
     database.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Delete(int id, LoaiKyLuat loaiKyLuat)
 {
     loaiKyLuat = database.LoaiKyLuats.Where(x => x.IdloaiKl == id).FirstOrDefault();
     database.Remove(loaiKyLuat);
     database.SaveChanges();
     return(RedirectToAction("Index", "DanhGia"));
 }
 public ActionResult Delete(int id, NhanVien nhanVien)
 {
     nhanVien = database.NhanViens.Where(x => x.Idnv == id).FirstOrDefault();
     database.Remove(nhanVien);
     database.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Delete(int id, PhongBan phongBan)
 {
     phongBan = database.PhongBans.Where(x => x.Idpb == id).FirstOrDefault();
     database.Remove(phongBan);
     database.SaveChanges();
     return(RedirectToAction("Index"));
 }