public T Dispatch <T>(DataAccessAction <T> dataAccessFunction)
 {
     using (var conn = dbManager.Database())
     {
         return(dataAccessFunction.Function(conn));
     }
 }
 public void Dispatch(DataAccessAction dataAccessAction)
 {
     using (var conn = dbManager.Database())
     {
         dataAccessAction.Action(conn);
     }
 }