Exemple #1
0
 public ActionResult DeleteStackholder(string collection)
 {
     try
     {
         bool             success   = false;
         string           result    = null;
         ConfigurationDAL configDAL = new ConfigurationDAL();
         if (collection != "")
         {
             string   roleIDWithcomma = collection.TrimEnd(',');
             string[] roleidArray     = roleIDWithcomma.Split(',');
             int[]    myInts          = Array.ConvertAll(roleidArray, s => int.Parse(s));
             foreach (var item in myInts)
             {
                 success = configDAL.DeleteStackHolderRecord(item);
                 result  = "Deleted";
             }
         }
         return(Json(new { resultMesssage = result, status = success }, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         throw;
     }
 }