public async Task<IHttpActionResult> PostproductData(project_data model, int projectId)
        {
            if (!ModelState.IsValid)
                return BadRequest();

            bool updated = _repo.UpdateProductData(model, projectId);


            if (updated == true)
                return Ok();

            model.Project_FK = projectId;
            db.project_data.Add(model);

            await db.SaveChangesAsync();

            return Ok();
        }
        public bool UpdateProductData(project_data model, int projectId)
        {
            var query = (from m in db.project_data
                         where m.Project_FK == projectId
                         select m).AsQueryable();

            if (query.Count() == 0)
                return false;

            project_data newDescription = query.First<project_data>();
            newDescription.content = model.content;
            db.Entry(newDescription).State = EntityState.Modified;
            db.SaveChanges();
            return true;
        }