public IActionResult GetComandas([FromQuery] string fecha) { try { return(new JsonResult(_service.GetComandas(fecha)) { StatusCode = 200 }); } catch (Exception e) { return(BadRequest(e.Message)); } }