public async Task <ActionResult <ChequeReception> > PostChequeReception(ChequeReception chequeReception)
        {
            _context.chequeReceptions.Add(chequeReception);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetChequeReception", new { id = chequeReception.Id }, chequeReception));
        }
        public async Task <IActionResult> PutChequeReception(int id, ChequeReception chequeReception)
        {
            if (id != chequeReception.Id)
            {
                return(BadRequest());
            }

            _context.Entry(chequeReception).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ChequeReceptionExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }