Пример #1
0
        public DogBLL DogFindByBreed(int BreedID)
        {
            DogBLL proposedRV = null;

            try
            {
                DogDAL item = _dalcont.DogFindByBreed(BreedID);
                if (item != null)
                {
                    proposedRV = new DogBLL(item);
                }
            }
            catch (Exception ex)
            {
                Logger.Logger.Log(ex);
            }
            return(proposedRV);
        }
Пример #2
0
        public DogBLL GetDogsByUserID(int UserID)
        {
            DogBLL proposedRV = null;

            try
            {
                DogDAL item = _dalcont.GetDogsByUserID(UserID);
                if (item != null)
                {
                    proposedRV = new DogBLL(item);
                }
            }
            catch (Exception ex)
            {
                Logger.Logger.Log(ex);
            }
            return(proposedRV);
        }
Пример #3
0
        public List <DogBLL> DogsGetAll(int Skip, int Take)
        {
            List <DogBLL> proposedRV = new List <DogBLL>();

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