예제 #1
0
 public static bool IsNullOrEmpty(this SharedModel entity)
 {
     if (!IsObjectNull(entity))
     {
         if (!IsEmptyObject(entity))
         {
             return(false);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public static bool IsEmptyObject(this SharedModel entity)
 {
     return(entity.Id == 0);
 }
예제 #3
0
 public static bool IsObjectNull(this SharedModel entity)
 {
     return(entity == null);
 }