public void ProcessRequest(HttpContext context)
 {
     CGamificationBO BO = new CGamificationBO();
     var res=BO.DisplayHelp();
     JavaScriptSerializer js = new JavaScriptSerializer();
     context.Response.ContentType = "text/plain";
     context.Response.Write(js.Serialize(res));
 }
 public void ProcessRequest(HttpContext context)
 {
     String associate_id = context.Session["associate_id"].ToString();
     int item_id=Convert.ToInt32(context.Request.QueryString["item_id"]);
     CGamificationBO BO = new CGamificationBO();
     BO.BuyItem(associate_id,item_id);
     context.Response.ContentType = "text/plain";
     context.Response.Write("200");
 }
        public void ProcessRequest(HttpContext context)
        {
            String associate_id = context.Session["associate_id"].ToString();

            CGamificationBO BO = new CGamificationBO();
            var res = BO.DisplayNotification(associate_id);
            JavaScriptSerializer js = new JavaScriptSerializer();

            context.Response.ContentType = "text/plain";
            context.Response.Write(js.Serialize(res));
        }
        public void ProcessRequest(HttpContext context)
        {
            String associate_id = context.Session["associate_id"].ToString();
            String message=context.Request.QueryString["message"];
            String time = DateTime.Now.ToString();

            CGamificationBO BO = new CGamificationBO();
            BO.InsertMessage(associate_id,message,time);

            context.Response.ContentType = "text/plain";
            context.Response.Write("200");
        }
        public void ProcessRequest(HttpContext context)
        {
            String vehicle_no=context.Request.QueryString["vehicle_no"];
            String punctuality = context.Request.QueryString["punctuality"];
            int rating = Convert.ToInt32(context.Request.QueryString["rating"]);
            String feedback = context.Request.QueryString["feedback"];
            String journey = context.Request.QueryString["journey"];

            CGamificationBO BO = new CGamificationBO();
            BO.AddFeedback(vehicle_no,punctuality,rating,feedback,journey);

            context.Response.ContentType = "text/plain";
            context.Response.Write("200");
        }