コード例 #1
0
        public async Task <List <Group> > Search([FromQuery] GroupSearchRequest request)
        {
            var groups = (List <Group>)null;

            try
            {
                groups = await _groupsRepository.GetByNameLike(request.Name);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                HttpContext.Response.StatusCode = StatusCodes.Status500InternalServerError;
            }

            return(groups);
        }