Ejemplo n.º 1
0
        public BreedBLL BreedFindByID(int BreedID)
        {
            BreedBLL proposedReturnValue = null;

            try
            {
                BreedDAL item = _dalcont.BreedFindbyID(BreedID);
                if (item != null)
                {
                    proposedReturnValue = new BreedBLL(item);
                }
            }
            catch (Exception ex)
            {
                Logger.Logger.Log(ex);
            }
            return(proposedReturnValue);
        }
Ejemplo n.º 2
0
        public List <BreedBLL> BreedGetAll(int Skip, int Take)
        {
            List <BreedBLL> proposedRV = new List <BreedBLL>();

            try
            {
                List <BreedDAL> items = _dalcont.BreedGetAll(Skip, Take);
                foreach (BreedDAL item in items)
                {
                    BreedBLL correctedItem = new BreedBLL(item);
                    proposedRV.Add(correctedItem);
                }
            }
            catch (Exception ex)
            {
                Logger.Logger.Log(ex);
            }
            return(proposedRV);
        }