コード例 #1
0
        public HttpResponseMessage AddFunds(Transaction oTransaction)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }
            TransactionClient oCustRepo = kernel.Get <TransactionClient>();

            oCustRepo.AddFunds(oTransaction);

            return(Request.CreateResponse(HttpStatusCode.OK));
        }