Esempio n. 1
0
 public int Add(Association association)
 {
     try
     {
         _FileOContext.Associations.Add(association);
         return(_FileOContext.SaveChanges());
     }
     catch (Exception) { return(0); }
 }
Esempio n. 2
0
 public int Add(Observer observer)
 {
     try
     {
         _FileOContext.Observers.Add(observer);
         return(_FileOContext.SaveChanges());
     }
     catch (Exception) { return(0); }
 }