public IActionResult PutPago(Int64 key, [FromBody] Models.Agriculturebd.Pago newItem)
        {
            if (newItem == null || newItem.Id != key)
            {
                return(BadRequest());
            }

            this.OnPagoUpdated(newItem);
            this.context.Pagos.Update(newItem);
            this.context.SaveChanges();

            return(new NoContentResult());
        }
        public IActionResult Post([FromBody] Models.Agriculturebd.Pago item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            this.OnPagoCreated(item);
            this.context.Pagos.Add(item);
            this.context.SaveChanges();

            return(Created($"odata/Agriculturebd/Pagos/{item.Id}", item));
        }
 partial void OnPagoUpdated(Models.Agriculturebd.Pago item);
 partial void OnPagoDeleted(Models.Agriculturebd.Pago item);