/// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="rightrequest"></param>
        /// <returns></returns>
        public BasicResponse DeleteRights(RightsDeleteRequest rightrequest)
        {
            foreach (string Id in rightrequest.IdList)
            {
                _Repository.DeleteRight(Id);
            }
            var rightresponse = new BasicResponse();

            return(rightresponse);
        }
 public BasicResponse DeleteRights(RightsDeleteRequest rightrequest)
 {
     return(_rightService.DeleteRights(rightrequest));
 }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="rightrequest"></param>
        /// <returns></returns>
        public BasicResponse DeleteRights(RightsDeleteRequest rightrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Right/DeleteRights?token=" + Token, JSONHelper.ToJSONString(rightrequest));

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