public ActionResult <SeckillTimeModel> DeleteSeckillTimeModel(int id) { var seckillTimeModel = _seckillTimeModelService.GetSeckillTimeModelById(id); if (seckillTimeModel == null) { return(NotFound()); } _seckillTimeModelService.Delete(seckillTimeModel); return(seckillTimeModel); }
public void Delete(SeckillTimeModel seckillTimeModel) { _seckillTimeModelService.Delete(seckillTimeModel); }