public ActionResult PostFeedback(FeedbackInformationRecord feedback) { if (feedback != null) { _commonDataService.CreateFeedbackRecord(feedback); return Json(new { Message = "" }); } return Json(new { Message = "Failed" }); }
public void CreateFeedbackRecord(FeedbackInformationRecord feedback) { feedback.DateCreated = DateTime.UtcNow; _feedbackInformationRepository.Create(feedback); }