public Account(IConfiguration configuration) { _repository = new data.Repositories.Account(configuration); _mapper = new MapperConfiguration(cfg => { cfg.CreateMap <data.Entities.Account, ViewModels.Account>(); cfg.CreateMap <ViewModels.Account, data.Entities.Account>(); }).CreateMapper(); }