Exemplo n.º 1
0
 private static bool CompareWithDto(StudentifyEventGetDto m, StudentifyEventDto dto)
 {
     if (m is null)
     {
         return(false);
     }
     if (dto is null)
     {
         return(false);
     }
     if (m.Name != dto.Name)
     {
         return(false);
     }
     if (m.ExpiryDate != dto.ExpiryDate)
     {
         return(false);
     }
     if (m.Description != dto.Description)
     {
         return(false);
     }
     if (m.Description != dto.Description)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
 private static bool Compare(StudentifyEventGetDto m1, StudentifyEventGetDto m2)
 {
     if (m1 is null)
     {
         return(false);
     }
     if (m2 is null)
     {
         return(false);
     }
     if (m1.Id != m2.Id)
     {
         return(false);
     }
     if (m1.EventType != m2.EventType)
     {
         return(false);
     }
     if (m1.Name != m2.Name)
     {
         return(false);
     }
     if (m1.CreationDate != m2.CreationDate)
     {
         return(false);
     }
     if (m1.ExpiryDate != m2.ExpiryDate)
     {
         return(false);
     }
     if (m1.Description != m2.Description)
     {
         return(false);
     }
     if (m1.AuthorId != m2.AuthorId)
     {
         return(false);
     }
     return(true);
 }