Ejemplo n.º 1
0
        public async Task <IHttpActionResult> AddToRole(string userId, string roleId)
        {
            var result = await _roleManager.AddToRole(userId, roleId);

            return(result.Succeeded ? (IHttpActionResult)NotFound() : Ok());
        }