public List <PersonModel> GetAllPersons()
        {
            DataTable dt = new DataTable();

            using (SqlCommand command = new SqlCommand())
            {
                dt = GetMultipleQuery(PersonStringsSql.GetAllPersons());
            }

            List <PersonModel> arrPerson = new List <PersonModel>();

            foreach (DataRow ms in dt.Rows)
            {
                arrPerson.Add(PersonModel.ToObject(ms));
            }

            return(arrPerson);
        }
        public PersonModel GetOnePersonById(string personId)
        {
            DataTable dt = new DataTable();

            if (personId.Equals(string.Empty) || personId.Equals(""))
            {
                throw new ArgumentOutOfRangeException();
            }
            PersonModel personModel = new PersonModel();

            using (SqlCommand command = new SqlCommand())
            {
                dt = GetMultipleQuery(PersonStringsSql.GetOnePersonById(personId));
            }

            foreach (DataRow ms in dt.Rows)
            {
                personModel = PersonModel.ToObject(ms);
            }

            return(personModel);
        }