public ActionResult DeleteNewCompetency(List <int> collection, int RoleID) { try { bool success = false; string result = null; ConfigurationDAL configDAL = new ConfigurationDAL(); if (collection.Count != 0) { success = configDAL.DeletenewCompetencies(collection, RoleID); result = "Deleted"; } return(Json(new { resultMesssage = result, status = success }, JsonRequestBehavior.AllowGet)); } catch { throw; } }