예제 #1
0
        public ActionResult Delete(string[] ids)
        {
            try
            {
                if (ids.Length != 0)
                {
                    var banners =
                        from id in ids
                        select _bannerService.GetById(int.Parse(id));

                    _bannerService.BatchDelete(banners);
                }
            }
            catch (Exception exception1)
            {
                var exception = exception1;
                LogText.Log(string.Concat("Banner.Delete: ", exception.Message));
            }
            return(RedirectToAction("Index"));
        }