Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public HistoryBLL FindHistoryByID(int HistoryID)
        {
            HistoryBLL ProposedReturnValue = null;
            HistoryDAL DataLayerObject     = _context.FindHistoryByID(HistoryID);

            if (null != DataLayerObject)
            {
                ProposedReturnValue = new HistoryBLL(DataLayerObject);
            }
            return(ProposedReturnValue);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 public void JustUpdateHistory(HistoryBLL History)
 {
     _context.JustUpdateHistory(History.HistoryID, History.PlateID, History.PaidFine, History.RegisteredOwner, History.Address1, History.State, History.ViolationID);
 }