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