コード例 #1
0
        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("删除失败"));
            }
        }
コード例 #2
0
 public ResultDto Delete([FromForm] int id)
 {
     _service.Delete(id);
     return(ResultDto.Success());
 }