public NghiepVu TimKiemTheoMa(string id) { NghiepVuDAL dal = new NghiepVuDAL(db); try { if (!string.IsNullOrEmpty(id)) { if (dal.TimKiemTheoMa(id) != null) { return(dal.TimKiemTheoMa(id)); } else { return(null); } } else { return(null); } } catch (Exception) { throw; } }
public bool ThemMoi(NghiepVu item) { NghiepVuDAL dal = new NghiepVuDAL(db); try { if (item != null) { if (TimKiemTheoMa(item.MaNghiepVu) != item) { return(dal.ThemMoi(item)); } else { return(false); } } else { return(false); } } catch (Exception) { throw; } }
public bool CapNhat(NghiepVu item) { NghiepVuDAL dal = new NghiepVuDAL(db); try { if (item != null) { return(dal.CapNhat(item)); } else { return(false); } } catch (Exception) { throw; } }
public IEnumerable <NghiepVu> TimKiemGanDungTheoTen(string thongTin) { NghiepVuDAL dal = new NghiepVuDAL(db); return(dal.TimKiemGanDungTheoTen(thongTin)); }
public IEnumerable <NghiepVu> LayTatCa() { NghiepVuDAL dal = new NghiepVuDAL(db); return(dal.LayTatCa()); }