public async Task <IActionResult> RemoveRole(string userid, string roleid) { try { return(Ok(await context.RemoveRole(userid, roleid))); } catch (Exception ex) { return(BadRequest(new ErrorMessage(ex.Message))); } }
public IHttpActionResult RemoveRole(string userId, string roleId) { try { return(Ok(context.RemoveRole(userId, roleId))); } catch (Exception ex) { return(BadRequest(ex.Message)); } }