コード例 #1
0
        public async Task <IActionResult> DeleteById(string id)
        {
            var res = await _sysLogService.Delete(id);

            if (res)
            {
                messageModel.response = true;
            }
            else
            {
                messageModel.response = false;
                messageModel.msg      = "删除失败";
            }
            return(new JsonResult(messageModel));
        }
コード例 #2
0
 public async Task <ApiResult <string> > Delete([FromBody] List <long> ids) => await _sysLogService.Delete(ids);