public JsonResult Get()
        {
            var result = new ValueReturned {
                access_token = "Jnoanoidnoidsnnsonosames",
                expiry       = 371938, username = "******"
            };
            var json = new JsonResult(result);

            var client = new RestClient();

            client.Timeout = -1;
            var request = new RestRequest(Method.POST);

            request.AddFile("file", @"C:\Users\COURE-TECH\Pictures\coure_email_picture.jpg");
            request.AddParameter("subject", "Email Delivery now supports File(s) attachment and BCC with  backward compatibility. ");
            request.AddParameter("recipients", "*****@*****.**");
            request.AddParameter("body", "Testing !! , Now further useful  and handles cases of Blind copy emailing and Multiple or single Files attachment [ANQ Brochure or VHP Brochure] etc email delivery.");
            request.AddParameter("from", "*****@*****.**");
            request.AddParameter("bcc", "*****@*****.**");
            request.AddParameter("cc", "*****@*****.**");

            client.BaseUrl = new Uri("http://localhost:5000/api/message/emailwithattachment");
            IRestResponse response = client.Execute(request);

            return(json);
        }
        public IActionResult Post([FromBody] dynamic value)
        {
            var result = new ValueReturned
            {
                access_token = "Jnoanoidnoidsnnsonosames",
                expiry       = 371938,
                username     = "******"
            };
            var json = new JsonResult(result);

            return(json);
        }