コード例 #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string        typeName = context.Request["typeName"];
            int           typeid   = Convert.ToInt32(context.Request["typeid"]);
            CategoriesBll Bll      = new CategoriesBll();
            Categories    ca       = new Categories();

            ca.Id   = typeid;
            ca.Name = typeName;
            bool falg = Bll.Update(typeName, typeid);

            if (falg)
            {
                context.Response.Write("ok");
            }
        }
コード例 #2
0
 public string EditCategory(string newCategoryName, int id)
 {
     return(CategoriesBll.Update(newCategoryName, id));
 }