/// <summary> /// Returns true if RentalRequest instances are equal /// </summary> /// <param name="other">Instance of RentalRequest to be compared</param> /// <returns>Boolean</returns> public bool Equals(RentalRequestViewModel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( Project == other.Project || Project != null && Project.Equals(other.Project) ) && ( LocalArea == other.LocalArea || LocalArea != null && LocalArea.Equals(other.LocalArea) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( DistrictEquipmentType == other.DistrictEquipmentType || DistrictEquipmentType != null && DistrictEquipmentType.Equals(other.DistrictEquipmentType) ) && ( EquipmentCount == other.EquipmentCount || EquipmentCount.Equals(other.EquipmentCount) ) && ( ExpectedHours == other.ExpectedHours || ExpectedHours != null && ExpectedHours.Equals(other.ExpectedHours) ) && ( ExpectedStartDate == other.ExpectedStartDate || ExpectedStartDate != null && ExpectedStartDate.Equals(other.ExpectedStartDate) ) && ( ExpectedEndDate == other.ExpectedEndDate || ExpectedEndDate != null && ExpectedEndDate.Equals(other.ExpectedEndDate) ) && ( FirstOnRotationList == other.FirstOnRotationList || FirstOnRotationList != null && FirstOnRotationList.Equals(other.FirstOnRotationList) ) && ( Notes == other.Notes || Notes != null && Notes.SequenceEqual(other.Notes) ) && ( Attachments == other.Attachments || Attachments != null && Attachments.SequenceEqual(other.Attachments) ) && ( History == other.History || History != null && History.SequenceEqual(other.History) ) && ( RentalRequestAttachments == other.RentalRequestAttachments || RentalRequestAttachments != null && RentalRequestAttachments.SequenceEqual(other.RentalRequestAttachments) ) && ( RentalRequestRotationList == other.RentalRequestRotationList || RentalRequestRotationList != null && RentalRequestRotationList.SequenceEqual(other.RentalRequestRotationList) )); }
/// <summary> /// Returns true if RentalRequestSearchResultViewModel instances are equal /// </summary> /// <param name="other">Instance of RentalRequestSearchResultViewModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(RentalRequestSearchResultViewModel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( LocalArea == other.LocalArea || LocalArea != null && LocalArea.Equals(other.LocalArea) ) && ( EquipmentCount == other.EquipmentCount || EquipmentCount != null && EquipmentCount.Equals(other.EquipmentCount) ) && ( EquipmentTypeName == other.EquipmentTypeName || EquipmentTypeName != null && EquipmentTypeName.Equals(other.EquipmentTypeName) ) && ( ProjectName == other.ProjectName || ProjectName != null && ProjectName.Equals(other.ProjectName) ) && ( PrimaryContact == other.PrimaryContact || PrimaryContact != null && PrimaryContact.Equals(other.PrimaryContact) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( ProjectId == other.ProjectId || ProjectId != null && ProjectId.Equals(other.ProjectId) ) && ( ExpectedStartDate == other.ExpectedStartDate || ExpectedStartDate != null && ExpectedStartDate.Equals(other.ExpectedStartDate) ) && ( ExpectedEndDate == other.ExpectedEndDate || ExpectedEndDate != null && ExpectedEndDate.Equals(other.ExpectedEndDate) )); }