public HttpResponseMessage GetAll(string query) { var contactInfos = _contactInfoRepository.GetAllRecords(query); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, contactInfos); return(response); }
public ContactInfo GetContactInfoByClientId(long clientId) { return(_contactInfoRepository.GetAllRecords("SELECT * FROM [ContactInfo] WHERE ClientId = " + clientId.ToString()).FirstOrDefault()); }