public ActionResult Delete(string[] ids) { try { if (ids.Length != 0) { var contactInformations = from id in ids select _contactInfoService.GetById(int.Parse(id)); _contactInfoService.BatchDelete(contactInformations); //Delete localize for (var i = 0; i < ids.Length; i++) { var ieLocalizedProperty = _localizedPropertyService.GetByEntityId(int.Parse(ids[i])); _localizedPropertyService.BatchDelete(ieLocalizedProperty); } } } catch (Exception exception1) { var exception = exception1; ExtentionUtils.Log(string.Concat("ContactInformation.Delete: ", exception.Message)); } return(RedirectToAction("Index")); }