コード例 #1
0
        public ApiResponse <ExamItem> Find(int id)
        {
            var model = ExamItemService.GetEntityById(id);

            var result = new ApiResponse <ExamItem>()
            {
                Result = model
            };

            if (model != null)
            {
                result.Success();
            }
            else
            {
                result.Failed(ResultEnum.NoData);
            }

            return(result);
        }