Beispiel #1
0
        public int GetPaymentByName(string name)
        {
            var actionResult   = controllerPayment.GetByName(name);
            var okObjectResult = actionResult as OkObjectResult;
            var model          = okObjectResult.Value as Payment;

            return(model.Id);
        }