public ActionResult <int> Post([FromBody] reservationRestaurant resAux)
        {
            try{
                Restaurant_res          reserva = new Restaurant_res(resAux.fecha_res, resAux.cant_people, resAux.date, resAux.user_id, resAux.rest_id);
                AddResRestaurantCommand command = CommandFactory.AddResRestaurantCommand(reserva);
                command.Execute();

                //            var id = ResRestaurantRepository.addReservation(reserva);
                //Console.WriteLine(id);
                return(Ok());
            }
            catch (DatabaseException)
            {
                Console.WriteLine("Estoy en el databaseException");
                return(StatusCode(500));
            }
            catch (InvalidStoredProcedureSignatureException)
            {
                Console.WriteLine("Estoy en el InvalidStoredProcedureSignatureException");
                return(StatusCode(500));
            }
            catch (AvailabilityException e) {
                ErrorMessage errorMessage = new ErrorMessage(e.Message);
                return(BadRequest(errorMessage));
            }
        }
        public ActionResult <string> Put(int id, reservationRestaurant resAux)
        {
            var updateResRestaurantCommand = CommandFactory.UpdateResRestaurantCommand(id, resAux);

            try
            {
                updateResRestaurantCommand.Execute();
                return(updateResRestaurantCommand.GetResult());
            }
            catch (DatabaseException)
            {
                ResponseError mensaje = new ResponseError();
                mensaje.error = "DataBase error.";
                return(StatusCode(500, mensaje));
            }
            catch (InvalidStoredProcedureSignatureException e)
            {
                ResponseError mensaje = new ResponseError();
                mensaje.error = "Error interno.";
                return(StatusCode(500));
            }
        }