Exemple #1
0
        public ActionResult Index(ReqTrainingModel treq)
        {
            string _CustomerSituation = treq.CustomerTeams;

            string _CustomerRequirements = treq.CustomerCounrty;

            int _NumberOfTrainne = treq.NumberOfTrainne;

            string _CustomerEmail = treq.CustomerEmail;

            string _CustomerCode = treq.CustomerCode;

            string _MSFTEmail = treq.MSFTEmail;


            return(View());
        }
Exemple #2
0
        public async Task <ActionResult> ReqTrain(ReqTrainingModel treq)
        {
            string _MSFTEmail = treq.MSFTEmail;

            string _CustomerTeams = treq.CustomerTeams;

            string _CustomerCounrty = treq.CustomerCounrty;

            int _NumberOfTrainne = treq.NumberOfTrainne;

            string _CustomerEmail = treq.CustomerEmail;

            string _CustomerCode = treq.CustomerCode;


            string _Course = treq.Course;



            JSONSer jser = new JSONSer
            {
                deloitteemail  = _CustomerEmail,
                deloittenumber = _NumberOfTrainne,
                deloitteteam   = _CustomerTeams,
                coursename     = _Course,
                country        = _CustomerCounrty
            };
            string json = JsonConvert.SerializeObject(jser, Formatting.Indented);

            Console.WriteLine(json);

            //test comment

            using (var client = new HttpClient())
            {
                var content  = new StringContent(json, Encoding.UTF8, "application/json");
                var response = client.PostAsync("https://prod-55.eastus.logic.azure.com:443/workflows/957082ccaa4c4c12b457ba59bf8d1deb/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=p_bjmnbe2qMlYtEMHKvdJ9zjgRYQOrSLQ6PgWujeEvA", content).Result;
            }

            //https://prod-55.eastus.logic.azure.com:443/workflows/957082ccaa4c4c12b457ba59bf8d1deb/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=p_bjmnbe2qMlYtEMHKvdJ9zjgRYQOrSLQ6PgWujeEvA
            return(View());
        }