public IHttpActionResult PutView_SupplierCheque(int id, View_SupplierCheque view_SupplierCheque)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostView_SupplierCheque(View_SupplierCheque view_SupplierCheque)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.View_SupplierCheque.Add(view_SupplierCheque);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateException)
            {
                if (View_SupplierChequeExists(view_SupplierCheque.Id))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

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