public async Task <IActionResult> All() { var data = (await _sectionService.All()) .Select(section => new SectionsViewModel { Id = section.Id, ClassName = section.Class, Code = section.Code, Period = section.Period, Professor = section.Professor }); return(Ok(data)); }