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