常用方法
常用方法
常用方法
常用方法
public async Task <CategoryReadDto> GetCategoryByIdAsync(int id) { var category = await _repo.GetCategoryByIdAsync(id); if (category == null) { return(null); } return(_mapper.Map <CategoryReadDto>(category)); }