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

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

                this.OnKundenCreated(item);
                this.context.Kundens.Add(item);
                this.context.SaveChanges();

                var key = item.KundenID;

                var itemToReturn = this.context.Kundens.Where(i => i.KundenID == key);

                Request.QueryString = Request.QueryString.Add("$expand", "Base,KundenStatus");

                return(new ObjectResult(SingleResult.Create(itemToReturn))
                {
                    StatusCode = 201
                });
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
                return(BadRequest(ModelState));
            }
        }
 partial void OnKundenDeleted(Models.DbSinDarEla.Kunden item);
 partial void OnKundenCreated(Models.DbSinDarEla.Kunden item);