public async Task<IHttpActionResult> PutSubscriber(int id, Subscriber subscriber)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != subscriber.Id)
            {
                return BadRequest();
            }

            db.Entry(subscriber).State = EntityState.Modified;

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SubscriberExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostSubscriber(SubscriberDTO subscriberDTO)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            ICollection<MailingList> mailingList = new List<MailingList>();
            foreach (var mailingListId in subscriberDTO.MailingLists)
            {
                foreach (var ml in db.MailingLists)
                {
                    if (ml.Id == mailingListId)
                    {
                        mailingList.Add(ml);
                        break;
                    }
                }
                //string name = "List" + m;
                //string description = "List " + m + "description";
                //mailingList.Add(new MailingList { Id = m, Name = name, Description = description });
            }

            var subscriber = new Subscriber { Id = subscriberDTO.Id, Email = subscriberDTO.Email, First = subscriberDTO.First, MailingLists = mailingList };

            db.Subscribers.Add(subscriber);
            await db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = subscriber.Id }, subscriber);
        }