public bool AddTrafficTicket(int id, string description, int decreasePoint) { RpTrafficTickets rpTrafficTickets = new RpTrafficTickets(); TrafficTicket ticket = new TrafficTicket(id, description, decreasePoint); return(rpTrafficTickets.AddTrafficTicket(ticket)); }
public TrafficTicket GetTrafficTicket(int id) { RpTrafficTickets rpTrafficTickets = new RpTrafficTickets(); return(rpTrafficTickets.GetTrafficTicket(id)); }
public List <TrafficTicket> GetTrafficTickets() { RpTrafficTickets rpTrafficTickets = new RpTrafficTickets(); return(rpTrafficTickets.GetTrafficTickets().ToList()); }