コード例 #1
0
        private void RandomNumberGenerate(object rowItem)
        {
            MeowModel meowModel = rowItem as MeowModel;

            meowModel.RandomNumber = _randomNumber.Next(0, 5);

            _animalSoundService.AnimalTypeCalling(meowModel.RandomNumber);
        }
コード例 #2
0
        public ActionResult MeowCount(string inputString)
        {
            int result = MeowModel.MeowCount(inputString);

            return(PartialView((object)result.ToString()));
        }