public DataTable GetUserData() { PersData persData = new PersData(); DataTable dt = persData.GetRecords(); //DatabaseLauncher.StopWithoutTransaction(); return(dt); }
public void CreatePerson(PersDto persDto) { persDto.Creationid = LoginData.UserID; persDto.CreationDate = DateTime.Now; PersData persData = new PersData(persDto); persDto.Personid = persData.CreateRecord(); }
public List <PersDto> GetPersDto() { PersData persData = new PersData(); return(persData.EntityUsers()); }
public PersDto GetUserDto(int primaryKeyValue) { PersData persData = new PersData(); return(persData.EntityUser(primaryKeyValue)); }
public void UpdateUser(PersDto persDto, int primaryKeyValue) { PersData persData = new PersData(persDto); persData.UpdateRecord(primaryKeyValue); }