public bool UpdateprojectManual(project_manuals model, int projectId)
        {
            var query = (from m in db.project_manuals
                         where m.Project_FK == projectId
                         select m).AsQueryable();

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

            project_manuals newDescription = query.First<project_manuals>();
            newDescription.content = model.content;
            db.Entry(newDescription).State = EntityState.Modified;
            db.SaveChanges();
            return true;
        }
        public async Task<IHttpActionResult> PostprojectManual(project_manuals model, int projectId)
        {
            if (!ModelState.IsValid)
                return BadRequest();

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


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

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

            await db.SaveChangesAsync();

            return Ok();
        }