Ejemplo n.º 1
0
 public IHttpActionResult GetTrans()
 {
     try
     {
         var data = this.dataTransBl.GetDataTrans();
         setRedis.AddTrans(data.Result, Resources.ResourcesLog.keyTrans);
         return(Ok(data));
     }
     catch (Exception)
     {
         logger.Debug(Resources.ResourcesLog.FailConnect + System.Reflection.MethodBase.GetCurrentMethod().Name);
         return(Ok(getRedis.GetTrans(Resources.ResourcesLog.keyTrans)));
     }
 }
Ejemplo n.º 2
0
 public List <DataTrans> SetDataTrans(List <DataTrans> dataTrans, string key)
 {
     logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name);
     return(setDataTrans.AddTrans(dataTrans, key));
 }