public IHttpActionResult PostReview(ReviewVM reviewVM) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } reviewVM.Date = DateTime.Now; Review review = ConvertClass.ReviewVMToModel(reviewVM); db.Reviews.Add(review); db.SaveChanges(); return(Ok(review)); }