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