public async Task<IHttpActionResult> PostProjectBase(ProjectBase projectBase)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            projectBase.DateReported = DateTime.Now;
            db.ProjectBases.Add(projectBase);

            try
            {
                await db.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (ProjectBaseExists(projectBase.ProjectBaseId))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = projectBase.ProjectBaseId }, projectBase);
        }
        public async Task<IHttpActionResult> PutProjectBase(int id, ProjectBase projectBase)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != projectBase.ProjectBaseId)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }