/// <summary>
        /// 根据角色ID删除用户与角色的关联关系
        /// </summary>
        /// <param name="userrolerequest"></param>
        /// <returns></returns>
        public BasicResponse DeleteUserroleByRoleId(UserroleDeleteByRoleIdRequest userrolerequest)
        {
            _Repository.DeleteUserroleByRoleId(userrolerequest.RoleId);
            var userroleresponse = new BasicResponse();

            return(userroleresponse);
        }
 public BasicResponse DeleteUserroleByRoleId(UserroleDeleteByRoleIdRequest userrolerequest)
 {
     return(_userroleService.DeleteUserroleByRoleId(userrolerequest));
 }
Exemple #3
0
        /// <summary>
        /// 根据角色ID删除用户与角色的关联关系
        /// </summary>
        /// <param name="userrolerequest"></param>
        /// <returns></returns>
        public BasicResponse DeleteUserroleByRoleId(UserroleDeleteByRoleIdRequest userrolerequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Userrole/DeleteUserroleByRoleId?token=" + Token, JSONHelper.ToJSONString(userrolerequest));

            return(JSONHelper.ParseJSONString <BasicResponse>(responseStr));
        }