public LogisticServiceFare Update(LogisticServiceFare logisticFareNominalChanges) { _context.Entry(logisticFareNominalChanges).State = EntityState.Modified; _context.SaveChanges(); return(logisticFareNominalChanges); }
public LogisticServiceFare Add(LogisticServiceFare logisticFareNominal) { _context.LogisticServiceFarelItems.Add(logisticFareNominal); _context.SaveChanges(); return(logisticFareNominal); }
public LogisticServiceFare Delete(int id) { LogisticServiceFare logisticFareNominal = _context.LogisticServiceFarelItems.Find(id); if (logisticFareNominal != null) { _context.LogisticServiceFarelItems.Remove(logisticFareNominal); _context.SaveChanges(); } return(logisticFareNominal); }