internal int Update() { try { using (PersonDL _persondlDL = new PersonDL()) { return(_persondlDL.Update(this)); } } catch { throw; } }
internal int InsertAndGetId() { try { using (PersonDL _persondlDL = new PersonDL()) { return(_persondlDL.InsertAndGetId(this)); } } catch { throw; } }
private void RefreshGrd() { boLock = true; try { cmbxCreatedBy.SelectedIndex = -1; using (PersonDL frLgDL = new PersonDL()) { grdPerson.DataSource = frLgDL.GetTable(p); } } catch (Exception) { throw; } finally { boLock = false; p = new Person(); } }
public static void DeletePerson(long id) { PersonDL.DeletePerson(id); }
public static void UpdatePerson(Person person) { PersonDL.UpdatePerson(person); }
public static void AddPerson(Person person) { PersonDL.AddPerson(person); }
public static IEnumerable <Person> GetAllPersons() { return(PersonDL.GetAllPersons()); }
/// <summary> /// Hàm khởi tạo mặc định /// </summary> /// Người tạo: NBDUONG (20/6/2019) public PersonBL() { personDL = new PersonDL(); }