Ejemplo n.º 1
0
        public async Task <IActionResult> PorFecha(string fecha, string command = null)
        {
            if (DateTime.TryParse(fecha, out DateTime date))
            {
                var bloques = await loteriaServicio.GoGet(date);

                return(Ok(ExecuteCommand(bloques, command)));
            }
            else
            {
                return(NotFound("La fecha es errónea o no existen campos para la misma"));
            }
        }