public static bool Insert(Racas user) { CONN = new Connection(); try { CONN.conn.Insert(user); } catch { try { CONN.conn.Insert(user); } catch (Exception ex) { F.WriteLOG("---------------------------\n" + DateTime.Now.ToString() + " Error: " + ex.Message); return(false); } } return(true); }
public static Racas Get(int ID) { CONN = new Connection(); Racas user = new Racas(); try { user = CONN.conn.Get <Racas>(ID); } catch { try { user = CONN.conn.Get <Racas>(ID); } catch (Exception ex) { F.WriteLOG("---------------------------\n" + DateTime.Now.ToString() + " Error: " + ex.Message); user = new Racas(); } } return(user); }