public UserController() { _ctx = new PLSFormsDBEntities(); var mapConfig = new MapperConfiguration(cfg => { cfg.AddProfile <MapperProfile>(); }); _mapper = mapConfig.CreateMapper(); }