public ActionResult CampaignView(int id)
        {
            var model = db.Campaigns.Find(id);
            var campaign = new CampaignViewModel()
            {
                Goal = model.Goal,

            };
            return View(campaign);
        }
        public JsonResult StartCampaign(CampaignViewModel newCampaign)
        {
            var userId = User.Identity.GetUserId();
            var user = db.Users.Find(userId);

            var campaign = new Campaign()
            {
                Title = newCampaign.Title,
                Story = newCampaign.Story,
                Goal = (double)newCampaign.Goal,
                Picture = newCampaign.Picture,
                Status = Status.Pending,
                CampaignStarter = user,
                DateEnd = DateTime.Now.AddDays(60)
            };
            foreach (var donationLevel in campaign.DonationLevels)
            {
                donationLevel.Campaign = campaign;
            }
            db.Campaigns.Add(campaign);
            db.SaveChanges();
            return Json(campaign.Id);
        }