public HttpResponseMessage GetAllActivePromotions() { var data = promotionRepository.GetAllActivePromotions(); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, data, formatter)); }
public List <Promotion> GetAllActivePromotions() { return(_promotionRepository.GetAllActivePromotions()); }