Example #1
0
        private async Task <Response> GetAllRoles()
        {
            var roles = await rolesManager.GetAllRoles();

            if (roles == null)
            {
                return(HttpStatusCode.NoContent);
            }
            return(this.Response.AsJson(roles));
        }