public void ProcessRequest(HttpContext context) { String bus_no=context.Request.QueryString["bus_no"]; CAdminBO BO = new CAdminBO(); BO.DeleteBus(bus_no); context.Response.ContentType = "text/plain"; context.Response.Write("200"); }
public void ProcessRequest(HttpContext context) { CAdminBO BO = new CAdminBO(); var res = BO.DisplayCabStats(); JavaScriptSerializer js = new JavaScriptSerializer(); context.Response.ContentType = "text/plain"; context.Response.Write(js.Serialize(res)); }
public void ProcessRequest(HttpContext context) { String cab_no=context.Request.QueryString["cab_no"]; CAdminBO BO = new CAdminBO(); var res=BO.GetCab("cab_no"); JavaScriptSerializer js = new JavaScriptSerializer(); context.Response.ContentType = "text/plain"; context.Response.Write(js.Serialize(res)); }
public void ProcessRequest(HttpContext context) { String route_no=context.Request.QueryString["route_no"]; String location = context.Request.QueryString["location"]; String time = context.Request.QueryString["time"]; CAdminBO BO = new CAdminBO(); BO.AddRoute(route_no,location,time); context.Response.ContentType = "text/plain"; context.Response.Write("200"); }
public void ProcessRequest(HttpContext context) { String bus_no=context.Request.QueryString["bus_no"]; String route_no=context.Request.QueryString["route_no"]; String city=context.Request.QueryString["city"]; int capacity = Convert.ToInt32(context.Request.QueryString["capacity"]); CAdminBO BO = new CAdminBO(); BO.AddBus(bus_no,route_no,city,capacity); context.Response.ContentType = "text/plain"; context.Response.Write("200"); }
public void ProcessRequest(HttpContext context) { String bus_no=context.Request.QueryString["bus_no"]; String route_no=context.Request.QueryString["route_no"]; String location=context.Request.QueryString["location"]; CAdminBO BO = new CAdminBO(); var res=BO.GetSchedule(bus_no,route_no,location); JavaScriptSerializer js = new JavaScriptSerializer(); context.Response.ContentType = "text/plain"; context.Response.Write(js.Serialize(res)); }
public void ProcessRequest(HttpContext context) { String cab_no = context.Request.QueryString["cab_no"]; String cab_model = context.Request.QueryString["cab_model"]; String area = context.Request.QueryString["area"]; CAdminBO BO = new CAdminBO(); var res = BO.SearchCab(cab_no,cab_model,area); JavaScriptSerializer js = new JavaScriptSerializer(); context.Response.ContentType = "text/plain"; context.Response.Write(js.Serialize(res)); }
public void ProcessRequest(HttpContext context) { String cab_no = context.Request.QueryString["cab_no"]; String cab_model = context.Request.QueryString["cab_model"]; int capacity = Convert.ToInt32(context.Request.QueryString["capacity"]); String area = context.Request.QueryString["area"]; String driver_name = context.Request.QueryString["driver_name"]; String driver_mobile = context.Request.QueryString["driver_mobile"]; CAdminBO BO = new CAdminBO(); BO.AddCab(cab_no,cab_model,capacity,area,driver_name,driver_mobile); context.Response.ContentType = "text/plain"; context.Response.Write("200"); }