public List <FeedbackModel> GetFeedbacks(long id) //Get feedback by product ID { var entity = _feedbackDA.GetFeedbacksByProductID(id); var feedbacks = new List <FeedbackModel>(); foreach (var feed in entity) { var model = _mapper.Map <Feedback, FeedbackModel>(feed); var customer = _customerDA.CustomerDetails(model.Customer_ID); model.CustomerName = customer.Name; feedbacks.Add(model); } return(feedbacks); }