示例#1
0
        public async Task <ActionResult> GetModel(long id)
        {
            GoodsSecondTypeDTO model = await goodsSecondTypeService.GetModelAsync(id);

            return(Json(new AjaxResult {
                Status = 1, Data = model
            }));
        }
示例#2
0
        private GoodsSecondTypeDTO ToDTO(GoodsSecondTypeEntity entity)
        {
            GoodsSecondTypeDTO dto = new GoodsSecondTypeDTO();

            dto.CreateTime  = entity.CreateTime;
            dto.Description = entity.Description;
            dto.Id          = entity.Id;
            dto.Name        = entity.Name;
            return(dto);
        }