Example #1
0
 public UserController(IOptions <ConnectionStrings> config)
 {
     this.config   = config;
     rs            = new User_Service(this.config.Value);
     commonService = new Common_Service(this.config.Value);
 }
 public CommonController(IOptions <ConnectionStrings> config, IHostingEnvironment hostingEnvironment)
 {
     this.config         = config;
     rs                  = new Common_Service(this.config.Value);
     _hostingEnvironment = hostingEnvironment;
 }