public Person Get(int entityID)
 {
     return(_dal.Get(a => a.PersonID == entityID));
 }
        public bool Delete(int entityID)
        {
            Person person = _personDAL.Get(a => a.PersonID == entityID);

            return(_personDAL.Delete(person) > 0);
        }
Example #3
0
 public Persons GetByID(int?personID)
 {
     return(_personDAL.Get(x => x.PersonID == personID));
 }