Exemplo n.º 1
0
        public async Task <IActionResult> GetList(string term = null)
        {
            try
            {
                var roles = await _provider.GetListAsync(term);

                return(Ok(roles));
            }
            catch (Exception e)
            {
                Logger.LogError(e, "An error occured while getting a list of roles.");

                return(InternalServerError(e.Message));
            }
        }