public IHttpActionResult PutView_Categories(int id, View_Categories view_Categories)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostView_Categories(View_Categories view_Categories)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.View_Categories.Add(view_Categories);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = view_Categories.Id }, view_Categories);
        }