public bool Delete(RequestComHiringDomain entity) { try { this.Delete<RequestComHiringDomain>(entity); return true; } catch (Exception) { return false; } }
public bool Insert(RequestComHiringDomain entity) { using( var session = SessionFactory.OpenStatelessSession()) using( var tx = session.BeginTransaction()) { try { var obj = session.Insert(entity); return true; } catch (Exception ex) { tx.Rollback(); Logger.Error(ex); //return throw; } } }
public bool UpdateWithId(RequestComHiringDomain entity) { try { this.Update<RequestComHiringDomain>(entity); return true; } catch (Exception ex) { return false; } }