public int Put(RptDelayLeg cat) { RptDelayLeg categ = _context.RptDelayLegs.Find(cat.ID); //categ.CategoryName = cat.CategoryName; return(_context.SaveChanges()); }
public int Delete(int id) { RptDelayLeg cat = _context.RptDelayLegs.Find(id); _context.RptDelayLegs.Remove(cat); return(_context.SaveChanges()); }
public int Post(RptDelayLeg cat) { _context.RptDelayLegs.Add(cat); return(_context.SaveChanges()); }