コード例 #1
0
        public IActionResult PutSeckillTimeModel(int id, SeckillTimeModel SeckillTimeModel)
        {
            if (id != SeckillTimeModel.Id)
            {
                return(BadRequest());
            }

            try
            {
                SeckillTimeModelService.Update(SeckillTimeModel);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SeckillTimeModelExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
コード例 #2
0
 public void Update(SeckillTimeModel seckillTimeModel)
 {
     _seckillTimeModelService.Update(seckillTimeModel);
 }