public async Task <IActionResult> PostTShopSkiItemsApi([FromBody] TShopSkiItemsApi tShopSkiItemsApi)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.TShopSkiItemsApi.Add(tShopSkiItemsApi);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TShopSkiItemsApiExists(tShopSkiItemsApi.ApplicationId))
                {
                    return(new StatusCodeResult(StatusCodes.Status409Conflict));
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTShopSkiItemsApi", new { id = tShopSkiItemsApi.ApplicationId }, tShopSkiItemsApi));
        }
        public async Task <IActionResult> PutTShopSkiItemsApi([FromRoute] Guid id, [FromBody] TShopSkiItemsApi tShopSkiItemsApi)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != tShopSkiItemsApi.ApplicationId)
            {
                return(BadRequest());
            }

            _context.Entry(tShopSkiItemsApi).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!TShopSkiItemsApiExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }