public int SeckillComUpt([FromForm] IOT.Core.Model.SeckillCom a)
 {
     try
     {
         logger.Debug($"用户对秒杀商品列表进行修改,修改的名称为:{a.SeckillComId}");
         int i = _seckillComRepository.Uptdate(a);
         return(i);
     }
     catch (Exception)
     {
         throw;
     }
 }
 public int SeckillComAdd([FromForm] IOT.Core.Model.SeckillCom a)
 {
     try
     {
         logger.Debug($"用户对秒杀商品列表进行添加,添加的名称为:{a.SeckillTitle}");
         int i = _seckillComRepository.Insert(a);
         return(i);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
 public int SeckillComUpt(IOT.Core.Model.SeckillCom a)
 {
     return(_seckillComRepository.Uptdate(a));
 }
Exemplo n.º 4
0
        public int SeckillComAdd(IOT.Core.Model.SeckillCom a)
        {
            int i = _seckillComRepository.Insert(a);

            return(i);
        }