public DemographicController(DemographicService demographicService, StateService stateService, IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _demographicService = demographicService;
     _stateService = stateService;
 }
 private static DemographicController GetDemographicControllerObject()
 {
     IUnitOfWork unitofWork;
     if(ConfigurationManager.AppSettings["UseDatabase"].ToUpper().ToString()=="TRUE")
              unitofWork = new UnitOfWork();
     else
         unitofWork = new UnitOfWorkFake();
     DemographicService demoService = new DemographicService(unitofWork);
     StateService stateService = new StateService(unitofWork);
     DemographicController demoController = new DemographicController(demoService, stateService, unitofWork);
     return demoController;
 }