public ActionResult create(DateTime date, string title, string contents, double rating, int productID, int orderProductDetailID, string img) { try { Responses response = new Responses { Date = date, Title = title, Contents = contents, Rating = rating, ProductId = productID, OrderProductDetailId = orderProductDetailID, Img = img, }; _responsesService.Add(response); _responsesService.SaveChanges(); return(Ok(response.Id)); } catch (Exception e) { return(BadRequest(e.Message)); } }