Exemple #1
0
        public List <PersonContact> GetAllPersonContact(int personId)
        {
            IPersonContactRepository personContactRepository = new PersonContactRepository();
            var personContactList = personContactRepository.FindBy(x => x.PersonId == personId && x.DeleteFlag == false);

            return(personContactList.ToList());
        }
Exemple #2
0
        public List <PersonContact> GetCurrentPersonContact(int personId)
        {
            IPersonContactRepository personContactRepository = new PersonContactRepository();
            var personContactList = personContactRepository.GetAll().Where(x => x.PersonId == personId && x.DeleteFlag == false).OrderBy(x => x.Id);

            return(personContactList.ToList());
        }