public bool Delete(RequestComInDomain entity) { try { this.Delete<RequestComInDomain>(entity); return true; } catch (Exception) { return false; } }
public bool Insert(RequestComInDomain 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(RequestComInDomain entity) { try { this.Update<RequestComInDomain>(entity); return true; } catch (Exception ex) { return false; } }