Exemplo n.º 1
0
        public async Task <IActionResult> GetGroupsByUserId([FromRoute] string id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var groups = _groupsRepository.GetGroupsByUserId(id);

            return(Ok(groups));
        }