public async Task <IHttpActionResult> GetRole(string id) { var role = await RoleManager.FindByIdAsync(id); if (role != null) { return(Ok(RoleDto.CreateFromModel(role))); } return(NotFound()); }