public async Task <IEnumerable <SingleSectionDto> > All() { return(await _sectionRepository .Filter(section => !section.Disabled) .Select(s => new SingleSectionDto { Id = s.Id, Class = s.Class.ClassName, Period = s.Period.Code, Professor = s.Professor.FirstName + " " + s.Professor.SecondName + " " + s.Professor.FirstLastName + " " + s.Professor.SecondLastName, Code = s.Code }).ToListAsync()); }