Esempio n. 1
0
        public AbstractModels Process(AbstractModels inputModel)
        {
            HomeModel model = (HomeModel)inputModel;
            model.Message = "Hello World";

            var customers = new List<Customer>();
            customers.Add(new Customer()
            {
                CustomerId = 1,
                CompanyName = "Name1"
            });
            customers.Add(new Customer()
            {
                CustomerId = 2,
                CompanyName = "Name2"
            });

            model.Customers = customers;

            model.Customer = new Customer()
            {
                CustomerId = 0,
                CompanyName = "Name0"
            };

            return model;
        }
Esempio n. 2
0
        public AbstractModels Process(AbstractModels inputModel)
        {
            HomeModel model = (HomeModel)inputModel;

            //next changing is Get Messages from Azure Tables(Azure Strage)
            List<string> savedMessages = new List<string>();
            savedMessages.Add("Hello");
            savedMessages.Add("Hello");

            model.SavedMessages = savedMessages;

            return model;
        }
Esempio n. 3
0
        public AbstractModels Process(AbstractModels inputModel)
        {
            DownloadFromWeb("test.gif");

            return new HomeModel();
        }