public HttpResponseMessage GetAll(string query)
        {
            var contactInfos             = _contactInfoRepository.GetAllRecords(query);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, contactInfos);

            return(response);
        }
Esempio n. 2
0
 public ContactInfo GetContactInfoByClientId(long clientId)
 {
     return(_contactInfoRepository.GetAllRecords("SELECT * FROM [ContactInfo] WHERE ClientId = " + clientId.ToString()).FirstOrDefault());
 }