public bool Save()
 {
     try {
         return(_ctx.SaveChanges() > 0);
     } catch (Exception e) {
         //TODO log this error
         return(false);
     }
 }
 public bool Save()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
 public bool Save()
 {
     try
     {
         return(_ctx.SaveChanges() > 0);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemple #4
0
 public bool Save()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (Exception e)
     {
         //TODO logging
         return(false);
     }
 }
Exemple #5
0
 public bool Save()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (Exception ex)
     {
         //Todo Log this error
         return(false);
     }
 }