private bool GetChimpKeys(int listId, out CHIMP_UserLists chimpKeysEntity, out string error) { error = string.Empty; chimpKeysEntity = ChimpUserListRepository.GetById(listId); if (chimpKeysEntity == null) { error = "MailChimp Keys not found"; return(false); } return(true); }
public static ChimpUserListDTO Entity2UserListDto(this CHIMP_UserLists entity) { return(new ChimpUserListDTO { AddOn = entity.AddOn, ApiKey = entity.ApiKey, IsActive = entity.IsActive, ListId = entity.ListId, SubscribersLastUpdate = entity.SubscribersLastUpdate, Uid = entity.Uid, UserId = entity.UserId, TotalSubscribers = entity.TotalSubscribers }); }
public static void UpdateUserListEntity(this CHIMP_UserLists entity, int totalSubscribers) { entity.TotalSubscribers = totalSubscribers; entity.SubscribersLastUpdate = DateTime.Now; }