private static bool ComapreGetDtos(InfoGetDto a, InfoGetDto b) { if (a is null || b is null) { return(false); } if (a.Id != b.Id) { return(false); } if (a.EventType != b.EventType) { return(false); } if (a.CreationDate != b.CreationDate) { return(false); } if (a.ExpiryDate != b.ExpiryDate) { return(false); } if (a.Description != b.Description) { return(false); } if (a.AuthorId != b.AuthorId) { return(false); } if (a.Category != b.Category) { return(false); } return(true); }
private static bool CompareWithDto(InfoGetDto getDto, InfoDto dto) { //if (getDto is null || dto is null) return false; //if (getDto.ExpiryDate != dto.ExpiryDate) return false; return(true); }