public IActionResult GetHistorialMoneda(int cod) { try { var historial = service.GetAllHMPorMoneda(cod).OrderByDescending(m => m.Fecha); return(Ok(historial)); } catch (Exception ex) { AltivaLog.Log.Insertar(ex.ToString(), "Error"); return(BadRequest()); } }