Пример #1
0
        public virtual TDtoUp Get(TDtoPk valInput)
        {
            TEntity vRecord = _Manager.GetById(valInput.Id);
            TDtoUp  vResult = MapToDtoUp(vRecord);

            return(vResult);
        }
Пример #2
0
        public async Task <IHttpActionResult> GetCategoriesById(int id)
        {
            Log4NetLogger logger = new Log4NetLogger();

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

            var clientRequests = await _categoryManager.GetById(id);

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

            return(Ok(clientRequests));
        }