Exemple #1
0
        public HttpResponseMessage GetAll(string query)
        {
            var quotes = _quotesRepository.GetAllRecords(query);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, quotes);

            return(response);
        }
Exemple #2
0
 public List <Quotes> GetQuotesByClientId(long clientId)
 {
     return(_quotesRepository.GetAllRecords("SELECT * FROM [Quotes] WHERE ClientId = " + clientId.ToString()).ToList());
 }