Ejemplo n.º 1
0
        public int Put(RptFuelLeg cat)
        {
            RptFuelLeg categ = _context.RptFuelLegs.Find(cat.ID);

            //categ.CategoryName = cat.CategoryName;
            return(_context.SaveChanges());
        }
Ejemplo n.º 2
0
        public int Delete(int id)
        {
            RptFuelLeg cat = _context.RptFuelLegs.Find(id);

            _context.RptFuelLegs.Remove(cat);
            return(_context.SaveChanges());
        }
Ejemplo n.º 3
0
 public int Post(RptFuelLeg cat)
 {
     _context.RptFuelLegs.Add(cat);
     return(_context.SaveChanges());
 }