public async Task <ApiResponse> GetAllSize() { var sizes = await _sizeService.GetAllAsync(); var sizeDtos = _mapper.Map <IList <SizeViewModel> >(sizes); return(new ApiResponse("list user", sizeDtos, 200)); }
public async Task <ApiResponse> GetAllSize() { var sizes = await _sizeService.GetAllAsync(); var sizeDtos = _mapper.Map <IList <SizeViewModel> >(sizes); return(new ApiResponse("list user", sizeDtos, 200)); }