Ejemplo n.º 1
0
 private FriendBM ConvertToDM(Friend input)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
        private FriendBM ConvertToBM(Friend model)
        {
            return new FriendBM()
            {
                CreationDate = model.CreationDate,
                FriendShipStatusId = model.FriendShipStatusId,
                FriendId = model.FriendId,
                UserId = model.UserId,
                FriendName = model.FriendUser.Name,
                FriendImage = model.FriendUser.UserGeneralInfo.Where(x => x.UserId == model.FriendId).Select(x => x.Image).FirstOrDefault(),
                FriendCommunity = model.FriendUser.CommunityName

            };
        }