Ejemplo n.º 1
0
        public async Task <IResponseEntity> DeleteAsync(string id)
        {
            if (id == null || id == "")
            {
                return(ResponseEntity.Error("删除对象的主键获取失败"));
            }
            var result = await _sysUserRepository.DeleteAsync(id);

            return(ResponseEntity.Result(result > 0));
        }