public ActionResult Delete(string[] ids) { try { if (ids.Length != 0) { var list = from id in ( from id in ids select int.Parse(id)).ToList() select _landingPageService.Get(x => x.Id == id); _landingPageService.BatchDelete(list); Response.Cookies.Add(new HttpCookie("system_message", FormUI.DeleteSuccess)); } } catch (Exception exception1) { var exception = exception1; Response.Cookies.Add(new HttpCookie("system_message", FormUI.DeleteFail)); ExtentionUtils.Log(string.Concat("ContactInformation.Delete: ", exception.Message)); } return(RedirectToAction("Index")); }