Example #1
0
 public void Create(Bugs bugs)
 {
     try
     {
         if (bugs != null)
         {
             db.Bugs.Add(bugs);
             db.SaveChanges();
         }
     }
       catch (Exception ex){CommonTools.ErrorReporting(ex);  }
 }
Example #2
0
 public void Edit(Bugs bugs)
 {
     try
     {
          if (bugs != null)
         {
             db.Entry(bugs).State = EntityState.Modified;
         db.SaveChanges();
         }
     }
       catch (Exception ex){CommonTools.ErrorReporting(ex);  }
 }