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