public FeedbackDTO UpdateFeedback(FeedbackDTO feedback) { var update = Mapper.Map<Feedback>(feedback); uOW.FeedbackRepo.Update(update); uOW.Save(); return Mapper.Map<FeedbackDTO>(update); }
public FeedbackDTO AddFeedback(FeedbackDTO feedback) { var newFeedback = Mapper.Map<Feedback>(feedback); uOW.FeedbackRepo.Insert(newFeedback); uOW.Save(); return Mapper.Map<FeedbackDTO>(newFeedback); }
public JsonResult AddFeedback(FeedbackDTO feedback) { return Json(feedbackManager.AddFeedback(feedback)); }
public JsonResult UpdateFeedback(FeedbackDTO feedback) { var newFeedback = feedbackManager.UpdateFeedback(feedback); userManager.CalculateUserRating(newFeedback.Id); return Json(newFeedback); }