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

            this.OnMetodoPagoUpdated(newItem);
            this.context.MetodoPagos.Update(newItem);
            this.context.SaveChanges();

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

            this.OnMetodoPagoCreated(item);
            this.context.MetodoPagos.Add(item);
            this.context.SaveChanges();

            return(Created($"odata/Agriculturebd/MetodoPagos/{item.Id}", item));
        }
 partial void OnMetodoPagoUpdated(Models.Agriculturebd.MetodoPago item);