Example #1
0
        public ActionResult Delete(int[] ids)
        {
            try
            {
                if (ids.Length != 0)
                {
                    var paymentMethod =
                        from id in ids
                        select _paymentMethodService.Get(x => x.Id == id);

                    _paymentMethodService.BatchDelete(paymentMethod);
                }
            }
            catch (Exception ex)
            {
                ExtentionUtils.Log(string.Concat("PaymentMethod.Delete: ", ex.Message));
            }

            return(RedirectToAction("Index"));
        }