Ejemplo n.º 1
0
        private void UpdateRoutePrice(HttpContext context)
        {
            string id         = context.Request.QueryString["id"];
            string routePrice = context.Request.QueryString["routePrice"];

            ClassLibrary.BLL.Routes routeBLL = new ClassLibrary.BLL.Routes();

            if (routeBLL.UpdateRoutePrice(int.Parse(id), decimal.Parse(routePrice)) > 0)
            {
                Print(context, "success");
            }
            else
            {
                Print(context, "errors");
            }
        }