public ActionResult Delete(string[] ids) { try { if (ids.Length != 0) { var attributes = from id in ids select _attributeService.GetById(int.Parse(id)); _attributeService.BatchDelete(attributes); } } catch (Exception exception1) { var exception = exception1; LogText.Log(string.Concat("ServerAttribute.Delete: ", exception.Message)); } return(RedirectToAction("Index")); }