public SubscriptionModel(User_StoreSubscription sub) { id = sub.Store.s_id; name = sub.Store.name; store_namespace = sub.Store.name_space; logo = sub.Store.logo; if (sub.dateadded.HasValue) date_added = sub.dateadded.Value; }
public SubscriberModel(User_StoreSubscription sub) { first_name = sub.User.firstName; last_name = sub.User.lastName; location = sub.User.location; profile_image = sub.User.profileimg_url; //u.User_ProfileImage.FirstOrDefault().url; if (sub.dateadded.HasValue) date_added = sub.dateadded.Value; }