Пример #1
0
 public static void Validation(this DTOBase dto)
 {
     if (dto == null)
     {
         throw new ArgumentException("DTO can not be null", "dto");
     }
 }
Пример #2
0
 public static T MapTo <T>(this DTOBase dto)
 {
     return((dto == null) ? default(T) : Mapper.Map <DTOBase, T>(dto));
 }