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 SeckillTime) { SeckillTimeRepository.Update(SeckillTime); }
public void Delete(SeckillTimeModel SeckillTime) { SeckillTimeRepository.Delete(SeckillTime); }
public void Create(SeckillTimeModel SeckillTime) { SeckillTimeRepository.Create(SeckillTime); }
public ActionResult <SeckillTimeModel> PostSeckillTimeModel(SeckillTimeModel SeckillTimeModel) { SeckillTimeModelService.Create(SeckillTimeModel); return(CreatedAtAction("GetSeckillTimeModel", new { id = SeckillTimeModel.Id }, SeckillTimeModel)); }
public void Delete(SeckillTimeModel seckillTimeModel) { _seckillContext.Set <SeckillTimeModel>().Remove(seckillTimeModel); _seckillContext.SaveChanges(); }
public void Update(SeckillTimeModel seckillTimeModel) { _seckillContext.Set <SeckillTimeModel>().Update(seckillTimeModel); _seckillContext.SaveChanges(); }
public void Update(SeckillTimeModel seckillTimeModel) { _seckillTimeModelService.Update(seckillTimeModel); }
public void Create(SeckillTimeModel seckillTimeModel) { _seckillContext.Set <SeckillTimeModel>().Add(seckillTimeModel); _seckillContext.SaveChanges(); }
public void Delete(SeckillTimeModel seckillTimeModel) { _seckillTimeModelService.Delete(seckillTimeModel); }
public void Create(SeckillTimeModel seckillTimeModel) { _seckillTimeModelService.Create(seckillTimeModel); }
public void Update(SeckillTimeModel SeckillTimeModel) { SeckillContext.SeckillTimeModels.Update(SeckillTimeModel); SeckillContext.SaveChanges(); }
public void Delete(SeckillTimeModel SeckillTimeModel) { SeckillContext.SeckillTimeModels.Remove(SeckillTimeModel); SeckillContext.SaveChanges(); }
public void Create(SeckillTimeModel SeckillTimeModel) { SeckillContext.SeckillTimeModels.Add(SeckillTimeModel); SeckillContext.SaveChanges(); }