Пример #1
0
        public async Task <IActionResult> GetList()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var user = await usersManager.FindByNameAsync(User.Identity?.Name);

            var result = groupsService.GetList(user.Id);

            return(HandleGetResult(result, true));
        }