public bool SameAs(XRoadService service) { return(XRoadInstance.Equals(service.XRoadInstance) && MemberClass.Equals(service.MemberClass) && MemberCode.Equals(service.MemberCode) && ServiceCode.Equals(service.ServiceCode) && string.Equals(SubsystemCode, service.SubsystemCode) && string.Equals(ServiceVersion, service.ServiceVersion)); }
private string GetWhere() { string where = ""; string query = Request.Url.Query; if ((!MemberName.Equals("")) || MemberName != null) { where += "&MemberName=" + BLL.Util.EscapeString(MemberName); } if ((!MemberCode.Equals("")) || MemberCode != null) { where += "&MemberCode=" + BLL.Util.EscapeString(MemberCode); } if ((!CustId.Equals("")) || CustId != null) { where += "&CustId=" + BLL.Util.EscapeString(CustId); } where += "&nmc=1&random=" + (new Random()).Next().ToString(); return(where); }