public async Task <ActionResult> GetModel(long id) { GoodsSecondTypeDTO model = await goodsSecondTypeService.GetModelAsync(id); return(Json(new AjaxResult { Status = 1, Data = model })); }
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); }