public HttpResponseMessage Post(Testimonial model)
        {
            model.created = DateTime.UtcNow;
            model = repo.createTestimonial(model);

            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, model);
            response.Headers.Location = new Uri(Url.Link("ApiControllerAndId", new { id = model.id }));
            return response;
        }
        public HttpResponseMessage Put(Testimonial model)
        {
            try
            {
                repo.update(model);
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }
 public Testimonial createTestimonial(Testimonial model)
 {
     db.testimonials.Add(model);
     db.SaveChanges();
     return model;
 }