public ICollection <Campaign> GetCampaignsInDateRange(TearsheetInputModel input)
        {
            string requestString  = this.BuildRequestString(input);
            string responseString = this.MakeXMLRequest(requestString);

            return(this.xmlParser.ParseCampaignsXML(responseString));
        }
Beispiel #2
0
        public ICollection <CampaignViewModel> GetCampaignsData(TearsheetInputModel tearsheet)
        {
            // Use the repositories to get the data.
            // Map to the final view model.
            // Return the result.

            throw new System.NotImplementedException();
        }
        public ActionResult Index(TearsheetInputModel input)
        {
            if (ModelState.IsValid)
            {
                // I'use Grid.MVC to visualise the information
                // Bootrap for UI
                return(this.PartialView("CampaignGridView", this.campaignServices.GetCampaignsData(input)));
            }

            return(this.View(input));
        }
 private string BuildRequestString(TearsheetInputModel input)
 {
     // Use the XML provided and fill in the options tags.
     throw new System.NotImplementedException();
 }