public IActionResult Post([FromBody] Models.DbSinDarEla.InfotexteHtml item)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                if (item == null)
                {
                    return(BadRequest());
                }

                this.OnInfotexteHtmlCreated(item);
                this.context.InfotexteHtmls.Add(item);
                this.context.SaveChanges();

                return(Created($"odata/DbSinDarEla/InfotexteHtmls/{item.InfotextID}", item));
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
                return(BadRequest(ModelState));
            }
        }
        public IActionResult PutInfotexteHtml(int key, [FromBody] Models.DbSinDarEla.InfotexteHtml newItem)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                if (newItem == null || (newItem.InfotextID != key))
                {
                    return(BadRequest());
                }

                this.OnInfotexteHtmlUpdated(newItem);
                this.context.InfotexteHtmls.Update(newItem);
                this.context.SaveChanges();

                var itemToReturn = this.context.InfotexteHtmls.Where(i => i.InfotextID == key);
                return(new ObjectResult(SingleResult.Create(itemToReturn)));
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
                return(BadRequest(ModelState));
            }
        }
 partial void OnInfotexteHtmlUpdated(Models.DbSinDarEla.InfotexteHtml item);