예제 #1
0
        public ServiceVM GetServiceById(int?id)
        {
            if (!id.HasValue)
            {
                return(null);
            }

            var service   = _services.FindById(id.Value);
            var serviceVM = Map <Service, ServiceVM>(service);

            return(serviceVM);
        }