public async Task <ActionResult> Delete(string id) { _sysActionService.Delete(id); await _unitOfWork.CommitAsync(); return(new DeleteSuccessResult()); }
public ActionResult ActionDelete(int[] ids) { if (_sysActionService.Delete(m => ids.Contains(m.Id)) > 0) { LogWarning("删除内容:" + string.Join(",", ids)); return(JsonSuccess("")); } return(JsonError("操作失败")); }
public ActionResult Delete(Guid id) { _sysActionService.Delete(id); _unitOfWork.Commit(); return(RedirectToAction("Index")); }