0
asrar created
Hi,
I am using the function below to get a list of all roles:
var _rolesAsync = await _roleRepository.GetAllListAsync();
I am getting the right values here. The return object is List<Role>. How do I convert this object to ListResultDto<RoleListDto> so i can return it to my modal? _rolesAsync does not have a MapTo function hence stuck.
Thanks so much.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Resolved it, I had forgotten to add reference to the AutoMapper class.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)