예제 #1
0
        public virtual IEnumerable <TDtoUp> GetAll()
        {
            var vRecords = _Manager.GetAll().ToList();
            IEnumerable <TDtoUp> vResult = MapToDtoUp(vRecords);

            return(vResult);
        }
예제 #2
0
        public async Task <IHttpActionResult> GetAllCategories()
        {
            Log4NetLogger logger = new Log4NetLogger();

            logger.Info("Hi There this is naveen");

            var clientRequests = await _categoryManager.GetAll();

            if (clientRequests == null)
            {
                return(NotFound());
            }

            return(Ok(clientRequests));
        }