예제 #1
0
 /// <summary>
 /// 检查类别是否存在
 /// </summary>
 /// <returns></returns>
 public string CheckType()
 {
     try
     {
         string     name  = Request["name"];
         ContentBLL bll   = new ContentBLL();
         bool       check = bll.CheckType(name);
         if (check)
         {
             return("success:ok");
         }
         else
         {
             return("success:nook");
         }
     }
     catch (Exception)
     {
         throw;
     }
 }