public int Update(ContactInfoViewModel contactInfoViewModel)
        {
            var contactInfo = EmContactInfo.SetToModel(contactInfoViewModel);

            _iContactInfoRepository.Update(contactInfo);
            return(Save());
        }
        //public IQueryable<ContactInfoViewModel> GetContactInfos()
        //{
        //    var contactInfos = _iContactInfoRepository.GetAll();
        //    var contactInfoViewModel = contactInfos.Select(EmContactInfo.SetToViewModel).ToList<ContactInfoViewModel>();
        //    return contactInfoViewModel.AsQueryable();
        //}

        public ContactInfoViewModel GetContactInfo(int id)
        {
            var contactInfo          = _iContactInfoRepository.GetById(id);
            var contactInfoViewModel = EmContactInfo.SetToViewModel(contactInfo);

            return(contactInfoViewModel);
        }
        public int Delete(ContactInfoViewModel contactInfoViewModel)
        {
            var deleteContactInfo = GetContactInfo(contactInfoViewModel.ContactInfoId);
            var contactInfo       = EmContactInfo.SetToModel(deleteContactInfo);

            _iContactInfoRepository.Delete(contactInfo);
            return(Save());
        }