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

            this.OnLocalizacionUpUpdated(newItem);
            this.context.LocalizacionUps.Update(newItem);
            this.context.SaveChanges();

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

            this.OnLocalizacionUpCreated(item);
            this.context.LocalizacionUps.Add(item);
            this.context.SaveChanges();

            return(Created($"odata/Agriculturebd/LocalizacionUps/{item.Id}", item));
        }
 partial void OnLocalizacionUpUpdated(Models.Agriculturebd.LocalizacionUp item);