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

            this.OnCategoriaInsumoUpdated(newItem);
            this.context.CategoriaInsumos.Update(newItem);
            this.context.SaveChanges();

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

            this.OnCategoriaInsumoCreated(item);
            this.context.CategoriaInsumos.Add(item);
            this.context.SaveChanges();

            return(Created($"odata/Agriculturebd/CategoriaInsumos/{item.Id}", item));
        }
 partial void OnCategoriaInsumoUpdated(Models.Agriculturebd.CategoriaInsumo item);