public int CreateHistory(HistoryBLL History) { int ProposedReturnValue = -1; ProposedReturnValue = _context.CreateHistory(History.PlateID, History.PaidFine, History.RegisteredOwner, History.Address1, History.State, History.ViolationID); return(ProposedReturnValue); }
public HistoryBLL FindHistoryByID(int HistoryID) { HistoryBLL ProposedReturnValue = null; HistoryDAL DataLayerObject = _context.FindHistoryByID(HistoryID); if (null != DataLayerObject) { ProposedReturnValue = new HistoryBLL(DataLayerObject); } return(ProposedReturnValue); }
public List <HistoryBLL> GetHistoryByPlateID(int PlateID, int skip, int take) { List <HistoryBLL> ProposedReturnValue = new List <HistoryBLL>(); List <HistoryDAL> ListOfDataLayerObjects = _context.GetHistoryByPlateID(PlateID, skip, take); foreach (HistoryDAL History in ListOfDataLayerObjects) { HistoryBLL BusinessObject = new HistoryBLL(History); ProposedReturnValue.Add(BusinessObject); } return(ProposedReturnValue); }
public List <HistoryBLL> GetHistoryByIDs(int skip, int take) { List <HistoryBLL> ProposedReturnValue = new List <HistoryBLL>(); List <HistoryDAL> ListOfDataLayerObjects = _context.GetHistoryByIDs(skip, take); foreach (HistoryDAL Drone in ListOfDataLayerObjects) { HistoryBLL BusinessObject = new HistoryBLL(Drone); ProposedReturnValue.Add(BusinessObject); } return(ProposedReturnValue); }
public void JustUpdateHistory(HistoryBLL History) { _context.JustUpdateHistory(History.HistoryID, History.PlateID, History.PaidFine, History.RegisteredOwner, History.Address1, History.State, History.ViolationID); }