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")); } }