Пример #1
0
        public async Task <ActionResult <IEnumerable <string> > > GetGroups()
        {
            // get groups
            // select names and send as list

            var groups = await _rozkladRepository.GetAllGroupsAsync();

            var groupNames = groups.Select(g => g.Group_Name.Replace(" ", ""));

            return(Ok(groupNames));
        }