public bool Equals(RealEstateCoReportModel other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(CompanyID.Equals(other.CompanyID)); }
public String AuthenticateValidate() { String msg = String.Empty; if (UserName.Length.Equals(0)) { msg = "Please Enter the User Name"; } if (UserPassword.Length.Equals(0)) { msg = msg.Length > 0 ? msg + "\n Please Enter the PassWord" : msg + "Please Enter the PassWord"; } if (CompanyID.Equals(0)) { msg = msg.Length > 0 ? msg + "\n Please Select the Company" : msg + "Please Select the Company"; } return(msg); }