public async Task <ActionResult> Delete(object id) { _SysAreaService.Delete(id); await _unitOfWork.CommitAsync(); return(new DeleteSuccessResult()); }
public ActionResult Delete(Guid id) { _sysAreaService.Delete(id); _unitOfWork.Commit(); return(RedirectToAction("Index")); }