コード例 #1
0
 public JsonResult DeleteCollection(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(JSON(false));
     }
     try
     {
         foreach (var s in id.Split(','))
         {
             GeneralRepository.DeleteCollection(Convert.ToInt64(s));
         }
     }
     catch (Exception ex)
     {
         return(JSON(new JsonExecuteResult(JsonExecuteResultTypes.ERROR, ex.Message)));
     }
     return(JSON(new JsonExecuteResult(JsonExecuteResultTypes.SUCCESS)));
 }