public void Put(int id, [FromBody] StadiumViewModel stadiumView)
        {
            if (id != stadiumView.id)
            {
                Response.StatusCode = (int)HttpStatusCode.BadRequest;
                return;
            }

            if (!ModelState.IsValid)
            {
                Response.StatusCode = (int)HttpStatusCode.BadRequest;
                return;
            }

            stadiumBll.SaveStadium(stadiumView.ToBaseModel());
        }
        public void Post([FromBody] StadiumViewModel stadiumView)
        {
            if (!ModelState.IsValid)
            {
                Response.StatusCode = (int)HttpStatusCode.BadRequest;
                return;
            }

            int teamId = stadiumBll.SaveStadium(stadiumView.ToBaseModel());

            // move images from temp folder
            if (teamId > 0 &&
                !string.IsNullOrWhiteSpace(stadiumView.image) &&
                stadiumView.tempGuid.HasValue)
            {
                string tempGuid    = stadiumView.tempGuid.ToString();
                string storagePath = MainCfg.Images.Teams.Replace("{id}", teamId.ToString());
                string tempPath    = MainCfg.Images.Teams.Replace("{id}", tempGuid);

                LocalStorageHelper.MoveFromTempToStorage(storagePath, tempPath, tempGuid);
            }
        }