/// <summary> Method override to check if two Equipment Items are the same or not. </summary> /// <param name="obj"> Specifies the CheckList object to compare to this CheckList. </param> /// <returns> Returns false if the two Checklists are not the same; otherwise returns true. </returns> public override bool Equals(Object obj) { if ((CheckList)obj != null) { CheckList checkList = (CheckList)obj; if (!CheckListName.Equals(checkList.CheckListName)) { return(false); } if (!CheckListDesc.ToString().Equals(checkList.CheckListDesc.ToString())) { return(false); } if (!TripName.Equals(checkList.TripName)) { return(false); } if (!TripDesc.ToString().Equals(checkList.TripDesc.ToString())) { return(false); } if (!TripDate.Equals(checkList.TripDate)) { return(false); } return(true); } return(false); }
public static TripNameDTO Convert(this TripName tripname) { return(new TripNameDTO { ItemId = tripname.ItemId, IsDeleted = tripname.IsDeleted, Updated = tripname.Updated, CorrectorId = tripname.CorrectorId, TripName = tripname.FullName }); }