public async Task<IHttpActionResult> PostPollinatorGarden(PollinatorGarden pollinatorGarden)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }
            if (pollinatorGarden.ProjectBase != null)
            {
                pollinatorGarden.ProjectBase.DateReported = DateTime.Now;
            }
            db.PollinatorGardens.Add(pollinatorGarden);

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (PollinatorGardenExists(pollinatorGarden.PollinatorGardenId))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = pollinatorGarden.PollinatorGardenId }, pollinatorGarden);
        }
        public async Task<IHttpActionResult> PutPollinatorGarden(int id, PollinatorGarden pollinatorGarden)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != pollinatorGarden.PollinatorGardenId)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }