public ActionResult Users() { IEnumerable <ClientProfileDto> clientDtos = clientService.GetClientProfiles(); var mapper = new MapperConfiguration(cfg => cfg.CreateMap <ClientProfileDto, ClientProfileViewModel>()).CreateMapper(); var clients = mapper.Map <IEnumerable <ClientProfileDto>, List <ClientProfileViewModel> >(clientDtos); return(View(clients)); }