public ActionResult Index() { ViewBag.colorCat = _svc.GetCat(new API.Contracts.Cat.Messaging.GetCatReq()).Cat.Color; ViewBag.colorDog = _svc.GetDog(new API.Contracts.Dog.Messaging.GetDogReq()).Dog.Color; ViewBag.colorTiger = _svc.GetTiger(new API.Contracts.Tiger.Messaging.GetTigerReq()).Tiger.Color; return(View()); }
// GET api/values public IEnumerable <string> Get() { var catColor = _animalService.GetCat(new API.Contracts.Cat.Messaging.GetCatReq()).Cat.Color; var dogColor = _animalService.GetDog(new API.Contracts.Dog.Messaging.GetDogReq()).Dog.Color; var tigerColor = _animalService.GetTiger(new API.Contracts.Tiger.Messaging.GetTigerReq()).Tiger.Color; return(new string[] { catColor, dogColor, tigerColor }); }