Esempio n. 1
0
 // HACK: fixes UNHANDLED EXCEPTION: System.NotSupportedException: Cannot store type: MWC.BL.Favorite
 public static int DeleteFavorite(int id)
 {
     lock (locker) {
         return(me.Delete(new Favorite()
         {
             ID = id
         }));
     }
 }
Esempio n. 2
0
 public static int DeleteItem <T>(int id) where T : BL.Contracts.IBusinessEntity, new ()
 {
     lock (locker) {
         return(me.Delete <T> (new T()
         {
             ID = id
         }));
     }
 }