public static void Register(HttpConfiguration config)
        {
            // Web API configuration and services
            var container = new UnityContainer();

            container.RegisterType <IIssueTrackerService, IssueTrackerService>();
            container.RegisterType <ICategoryService, CategoryService>();
            container.RegisterType <INotesService, NotesService>();
            container.RegisterType <IssuetrackerContext>(new HierarchicalLifetimeManager());
            var mapperConfig = PropertyMapper.InitializeAutoMapper();
            var mapper       = mapperConfig.CreateMapper();

            container.RegisterType <IMapper, Mapper>(new InjectionConstructor(mapperConfig));

            config.DependencyResolver = new UnityResolver(container);



            // Web API routes

            config.MapHttpAttributeRoutes();

            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
                );
        }