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()); }
public void Update(SeckillTimeModel seckillTimeModel) { _seckillTimeModelService.Update(seckillTimeModel); }