Пример #1
0
        public List <Feedback> GetFeedbacksByQ(QPeriod period)
        {
            var feedbacks = _context.Feedbacks.AsNoTracking()
                            .Where(x => x.department_time.Length == 5 && x.department_time.Contains(':')).ToList();
            var feed = feedbacks.Where(x => Convert.ToInt32(x.department_time.Split(":")[0].Substring(1, 1)) < period.EndQ &&
                                       Convert.ToInt32(x.department_time.Split(":")[0].Substring(1, 1)) > period.StartQ)
                       .ToList();

            return(feed);
        }
Пример #2
0
 public List <Feedback> GetByQ([FromBody] QPeriod period)
 {
     return(_feedbackService.GetFeedbacksByQ(period));
 }