public virtual IHttpActionResult Delete([FromUri] SysMenuDeleteRequest request) { var result = _sysMenuService.Delete(a => a.Id == request.Id); if (result > 0) { return(Succeed(result, "删除成功")); } else { return(Fail("删除失败")); } }
public ResultDto Delete([FromForm] int id) { _service.Delete(id); return(ResultDto.Success()); }