Example #1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddDbContext <AppDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

            services.AddIdentity <IdentityUser, IdentityRole>().AddEntityFrameworkStores <AppDbContext>();

            services.AddTransient <IClientesRepositorio, ClientesRepositorio>();

            services.AddTransient <IProcedimentosRepositorio, ProcedimentosRepositorio>();

            services.AddTransient <IFeedBackRepositorio, FeedBackRepositorio>();

            services.AddMvc();

            ConfigMapper.RegisterMapper();
        }