Beispiel #1
0
    public void RunBackend()
    {
        var backend = new BackendClass();

        backend.LoggingEvent += ShowLog;
        Task.Run(() => backend.SomeAction());
    }
Beispiel #2
0
        public ActionResult UserMessage(ContactClass contact)
        {
            //generate the query to check the user name or passwod
            String qry = "insert into Feedback(Name,Email,Contact,Message) values('" + contact.user_Name + "','" + contact.user_Email + "','" + contact.user_Contact + "','" + contact.user_Message + "')";

            BackendClass connection = new BackendClass();

            connection.contactTest(qry);
            return(View("GoodLuck"));
        }