コード例 #1
0
        //[ValidateAntiForgeryToken]
        public JsonResult BulkRemove(int[] ids)
        {
            bool result = _emailServices.DeleteEmails(ids);

            if (result)
            {
                AR.SetSuccess(String.Format(Messages.AlertDeleteSuccess, EntityNames.Email));
                return(Json(AR, JsonRequestBehavior.DenyGet));
            }
            AR.Setfailure(String.Format(Messages.AlertDeleteFailure, EntityNames.Email));
            return(Json(AR, JsonRequestBehavior.DenyGet));
        }