public void Insert(AuditTrail model) { using (var dataAccess = new AuditTrailDataAccess(_connectionString)) { dataAccess.Insert(model); } }
public ICollection <AuditTrail> Get(int objectID, string objectName) { using (var dataAccess = new AuditTrailDataAccess(_connectionString)) { return(dataAccess.Get(objectID, objectName)); } }