public IActionResult ApproveRequest(string Id)
        {
            Request x = _ctx.Requests.Find(Id);

            Student y = _ctx.Students.Find(x.Student);

            string no = y.Mobileno;

            x.Status = "Approved";

            _ctx.Requests.Update(x);

            _ctx.SaveChanges();

            _smssender.SendMessage(no, "Your request " + x.Type + " has been approved today.", "TR-NGODP507563_43D1K");

            TempData["a_msg"] = "A text message is being sent to the student for notification.";

            return(RedirectToAction("Requests"));

            TempData["a_msg"] = "An sms notification during the approval but was unable to send due to a system error. Please check internet connectivity.";

            return(RedirectToAction("Requests"));
        }
        //
        // Summary:
        //     Send message via wap servers
        //
        // Parameters:
        //   noHP:
        //     Destination Phone Number
        //
        //   pesan:
        //     Message content.
        //
        //   url:
        //      Server URL address
        public Boolean SendSMS(string noHP, string pesan, string url)
        {
            url = string.Format("tcp://{0}/SMSSender", url);

            try
            {
                ISmsSender smsSender = (ISmsSender)Activator.GetObject(typeof(ISmsSender), url);

                smsSender.SendMessage(pesan, noHP); // Standard message

                return(true);
            }
            catch (Exception ex)
            {
            }
            return(false);
        }