private FriendBM ConvertToDM(Friend input) { throw new NotImplementedException(); }
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 }; }