public bool Save()
 {
     try {
         return(_ctx.SaveChanges() > 0);
     } catch (Exception e) {
         //TODO log this error
         return(false);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #4
0
 public bool Save()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (Exception e)
     {
         //TODO logging
         return(false);
     }
 }
예제 #5
0
 public bool Save()
 {
     try
     {
         return(_context.SaveChanges() > 0);
     }
     catch (Exception ex)
     {
         //Todo Log this error
         return(false);
     }
 }