public List <EventFeedbackFromUser> GetFeedbacksEventForAdmin()
        {
            var feedbacks = _unitOfWork.Repository <Feedback>().GetAll().Where(x => x.EventId != null);
            List <EventFeedbackFromUser> listRs = new List <EventFeedbackFromUser>();

            if (feedbacks.Count() > 0)
            {
                foreach (var item in feedbacks)
                {
                    var      evt        = _unitOfWork.Repository <Event>().GetAll().Where(x => x.Id == item.EventId).FirstOrDefault();
                    DateTime createDate = (DateTime)item.DateTime;



                    EventFeedbackFromUser rs = new EventFeedbackFromUser
                    {
                        Id          = item.Id,
                        EventId     = (int)item.EventId,
                        EventName   = evt.Name,
                        VisitorName = item.VisitorName,
                        Rating      = (double)item.Rating,
                        Description = item.Description,
                        CreateDate  = createDate.Date.ToString("yyyy-MM-dd"),
                        Status      = (bool)item.Status
                    };
                    listRs.Add(rs);
                }
            }


            return(listRs);
        }
        public List <EventFeedbackFromUser> GetFeedbacksEventForUserById(int Id)
        {
            var eventFeedbacks = _unitOfWork.Repository <Feedback>().GetAll().Where(x => x.EventId == Id && x.Status == true);
            List <EventFeedbackFromUser> listFeedback = new List <EventFeedbackFromUser>();

            if (eventFeedbacks.Count() > 0)
            {
                foreach (var item in eventFeedbacks)
                {
                    DateTime dateTime = (DateTime)item.DateTime;

                    EventFeedbackFromUser feedback = new EventFeedbackFromUser()
                    {
                        Id          = item.Id,
                        EventId     = (int)item.EventId,
                        VisitorName = item.VisitorName,
                        Rating      = (double)item.Rating,
                        Description = item.Description,
                        CreateDate  = dateTime.Date.ToString("dd/MM/yyyy"),
                        Status      = (bool)item.Status
                    };
                    listFeedback.Add(feedback);
                }
            }
            return(listFeedback);
        }