예제 #1
0
        public IHttpActionResult GetParentsByName(string name)
        {
            logger.Info("Getting parents by name, controller");
            IEnumerable <ParentDTOOutAll> parents = parentsService.GetParentsByName(name);

            return(Ok(parents));
        }
        public IEnumerable <ParentDTO> GetParentsByName(string pattern)
        {
            IEnumerable <ParentDTO> parentsDto = service.GetParentsByName(pattern);

            return(parentsDto);
        }