public IHttpActionResult PosttblGastosSinComprobar(tblGastosSinComprobar tblgastossincomprobar)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.tblGastosSinComprobar.Add(tblgastossincomprobar);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (tblGastosSinComprobarExists(tblgastossincomprobar.IdGastosSinComprobar))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtRoute("DefaultApi", new { id = tblgastossincomprobar.IdGastosSinComprobar }, tblgastossincomprobar);
        }
        // PUT api/GastosSinComprobar/5
        public IHttpActionResult PuttblGastosSinComprobar(int id, tblGastosSinComprobar tblgastossincomprobar)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }