Example #1
0
 public void SelectPerson(int id)
 {
     try
     {
         DataPersonToPerson(PersonDataManager.GetPersonById(id));
     }
     catch (Exception e)
     {
         throw;
     }
 }
Example #2
0
 public void UpdatePerson()
 {
     try
     {
         PersonDataManager.UpdatePerson(PersonToDataEntyPerson(Person));
     }
     catch (Exception e)
     {
         throw;
     }
 }
Example #3
0
 public void Delete()
 {
     try
     {
         PersonDataManager.DeletePerson(PersonToDataEntyPerson(Person));
     }
     catch (Exception e)
     {
         throw;
     }
 }
Example #4
0
 public void AddPerson()
 {
     try
     {
         var id = PersonDataManager.AddPerson(PersonToDataEntyPerson(Person));
         Person.Id = id;
     }catch (Exception e)
     {
         throw;
     }
 }