Ejemplo n.º 1
0
        public async Task <ResponseModel> Post(Payment payment)
        {
            ITraineeService traineeService = new TraineeService(new VirtualtraineesEntities());
            Payment         data           = await traineeService.Pay(payment);

            return(data != null ? new ResponseModel(data) : new ResponseModel(null, false, MessageContainer.CouldNotSavePayment));
        }