よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public int GetPaymentByName(string name) { var actionResult = controllerPayment.GetByName(name); var okObjectResult = actionResult as OkObjectResult; var model = okObjectResult.Value as Payment; return(model.Id); }