コード例 #1
0
        public ActionResult <SeckillTimeModel> DeleteSeckillTimeModel(int id)
        {
            var seckillTimeModel = _seckillTimeModelService.GetSeckillTimeModelById(id);

            if (seckillTimeModel == null)
            {
                return(NotFound());
            }
            _seckillTimeModelService.Delete(seckillTimeModel);
            return(seckillTimeModel);
        }
コード例 #2
0
 public void Delete(SeckillTimeModel seckillTimeModel)
 {
     _seckillTimeModelService.Delete(seckillTimeModel);
 }