public IHttpActionResult PutView_SupplierPayment(int id, View_SupplierPayment view_SupplierPayment)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostView_SupplierPayment(View_SupplierPayment view_SupplierPayment)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.View_SupplierPayment.Add(view_SupplierPayment);
            db.SaveChanges();

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