protected void TryMap <TMappableTo, TMappableFrom>(TMappableTo instanceToMapTo, TMappableFrom instanceToMapFrom) where TMappableTo : class, new() where TMappableFrom : class { mapper.Map(instanceToMapFrom, instanceToMapTo); }
public async Task <IEnumerable <FriendViewModel> > GetFriends(Guid userId) { var friends = await _friendRepository.GetFriends(userId); return(_memberMapper.Map(friends)); }