Example #1
0
 internal int Update()
 {
     try
     {
         using (PersonDL _persondlDL = new PersonDL())
         {
             return(_persondlDL.Update(this));
         }
     }
     catch
     {
         throw;
     }
 }
Example #2
0
 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();
     }
 }
Example #4
0
 public static void DeletePerson(long id)
 {
     PersonDL.DeletePerson(id);
 }
Example #5
0
 public static void UpdatePerson(Person person)
 {
     PersonDL.UpdatePerson(person);
 }
Example #6
0
 public static void AddPerson(Person person)
 {
     PersonDL.AddPerson(person);
 }
Example #7
0
 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();
 }