Exemplo n.º 1
0
        public AvengersService(IAvengerDomain avengerDomain)
        {
            var dataCustomer       = JObject.Parse(File.ReadAllText(@"./Data/avengers.json"));
            var customerCollection = (JArray)dataCustomer["d"];

            avengersCollection = customerCollection.ToObject <IList <Avengers> >();
            this.avengerDomain = avengerDomain;
        }
 public AvengersController(IAvengerDomain avengerDomain)
 {
     this.avengerDomain = avengerDomain;
 }