Esempio n. 1
0
        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);
 }
Esempio n. 5
0
 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();
 }
Esempio n. 8
0
 public void Update(SeckillTimeModel seckillTimeModel)
 {
     _seckillTimeModelService.Update(seckillTimeModel);
 }
 public void Create(SeckillTimeModel seckillTimeModel)
 {
     _seckillContext.Set <SeckillTimeModel>().Add(seckillTimeModel);
     _seckillContext.SaveChanges();
 }
Esempio n. 10
0
 public void Delete(SeckillTimeModel seckillTimeModel)
 {
     _seckillTimeModelService.Delete(seckillTimeModel);
 }
Esempio n. 11
0
 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();
 }