public WentylatorsDTO GetWentylator(WentylatorParams wentylatorParams) { _logger.LogInformation("Getting wentylator {0}", wentylatorParams); var wentylators = _context.Wentylators.Include(w => w.Coefficients).Include(w => w.Nature).AsEnumerable(); var wentylator = QueryHelper.QueryOneWentylator(wentylators, wentylatorParams); var wentylatorsDTO = DTOHelper.PackWentylatorToDTO(wentylator); return(wentylatorsDTO); }