Example #1
0
        public void Setup()
        {
            var errorHandler = new ErrorHandlerService();

            _user        = new UserService(errorHandler);
            _jwt         = new JwtAuthService(errorHandler);
            _project     = new ProjectService(errorHandler);
            _projectType = new ProjectTypeService(errorHandler);
        }
Example #2
0
 public ProjectsController(FileService fileService, ProjectService projectService, LocationService locationService, ProjectTypeService projectTypeService, PropertyTypeService propertyTypeService, UnitTypeService unitTypeService)
 {
     _fileService         = fileService;
     _projectService      = projectService;
     _locationService     = locationService;
     _projectTypeService  = projectTypeService;
     _propertyTypeService = propertyTypeService;
     _unitTypeService     = unitTypeService;
 }
Example #3
0
 public SearchController(ProjectService projectService,
     ProjectTypeService projectTypeService,
     AreaService areaService,
     PriceService priceService)
 {
     _ProjectService = projectService;
     _ProjectTypeService = projectTypeService;
     _AreaService = areaService;
     _PriceService = priceService;
 }
Example #4
0
 public HomeController(ProjectService projectService,
     ProjectTypeService projectTypeService,
     AreaService areaService,
     PriceService priceService,
     NewsService newsService,
     AdsService adsService,
     ContractorServices contractorServices)
 {
     _ProjectService = projectService;
     _ProjectTypeService = projectTypeService;
     _AreaService = areaService;
     _PriceService = priceService;
     _NewsService = newsService;
     _AdsService = adsService;
     _ContractorServices = contractorServices;
 }
Example #5
0
        private async Task <bool> GetProjectTypes()
        {
            try
            {
                var obsTypes = await ProjectTypeService.GetAllTypes();

                ObservableCollection <ProjectInsight.Models.ReferenceData.ProjectType> types = new ObservableCollection <ProjectInsight.Models.ReferenceData.ProjectType>(obsTypes);
                viewModel.Types        = types;
                viewModel.SelectedType = obsTypes.FirstOrDefault();
            }
            catch (Exception ex)
            {
                //AuthenticationService.Logout();
                return(false);
            }
            return(true);
        }