Example #1
0
        public UserController()
        {
            _ctx = new PLSFormsDBEntities();

            var mapConfig = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <MapperProfile>();
            });

            _mapper = mapConfig.CreateMapper();
        }