public IHttpActionResult PutcollaborationData(int id, collaborationData collaborationData)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

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

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

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!collaborationDataExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetcollaborationData(int id)
        {
            collaborationData collaborationData = db.collaborationDatas.Find(id);

            if (collaborationData == null)
            {
                return(NotFound());
            }

            return(Ok(collaborationData));
        }
        public IHttpActionResult PostcollaborationData(collaborationData collaborationData)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.collaborationDatas.Add(collaborationData);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = collaborationData.id }, collaborationData));
        }
        public IHttpActionResult DeletecollaborationData(int id)
        {
            collaborationData collaborationData = db.collaborationDatas.Find(id);

            if (collaborationData == null)
            {
                return(NotFound());
            }

            db.collaborationDatas.Remove(collaborationData);
            db.SaveChanges();

            return(Ok(collaborationData));
        }