public IHttpActionResult PostCourseLikeUnlikeView(CourseLikeUnlikeView courseLikeUnlikeView)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.CourseLikeUnlikeViews.Add(courseLikeUnlikeView);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = courseLikeUnlikeView.ID }, courseLikeUnlikeView);
        }
        public IHttpActionResult PutCourseLikeUnlikeView(int id, CourseLikeUnlikeView courseLikeUnlikeView)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }