private EmpresaServices(ISqlBase sqlBase, IsolationLevel isolationLevel)
        {
            this.isolationLevel = isolationLevel;
            this.optionsBuilder = new DbContextOptionsBuilder <EmpresaContexto>();
            this.optionsBuilder.UseSqlServer(sqlBase.getConnection());

            this.repositorio = EmpresaRepositorio.Create(this.optionsBuilder.Options, isolationLevel);
        }
 public ActionResult cadastroempresa(Empresa emp)
 {
     empresaRepositorio.Create(emp);
     return(RedirectToAction("login"));
 }