public async Task <ActionResult> Delete(string id)
        {
            _sysActionService.Delete(id);

            await _unitOfWork.CommitAsync();

            return(new DeleteSuccessResult());
        }
Exemple #2
0
        public ActionResult ActionDelete(int[] ids)
        {
            if (_sysActionService.Delete(m => ids.Contains(m.Id)) > 0)
            {
                LogWarning("删除内容:" + string.Join(",", ids));
                return(JsonSuccess(""));
            }

            return(JsonError("操作失败"));
        }
Exemple #3
0
 public ActionResult Delete(Guid id)
 {
     _sysActionService.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }