public SubwebbitViewModel(Subwebbit subwebbit, bool isSubscribed, string userId) { Id = subwebbit.Id; Name = subwebbit.Name; SubscribersCount = subwebbit.SubscribersCount; IsSubscribed = isSubscribed; IsOwner = subwebbit.OwnerId == ObjectId.Parse(userId); }
public SearchedSubwebbitViewModel(Subwebbit subwebbit) { Id = subwebbit.Id; Name = subwebbit.Name; SubscribersCount = subwebbit.SubscribersCount; }