public SkierDetailViewModel(ISkierViewModel parent) { this.Parent = parent ?? throw new ArgumentNullException(); this.CountryCodes = new ObservableCollection <string>(); this.notificationService = App.Container.Resolve <INotificationService>(); this.locationLogic = App.Container.Resolve <ILocationLogic>(); this.SaveCommandViewModel = new CommandViewModel( "Save", "Save skier", async() => await this.Parent.SaveAsync(), () => !this.Parent.Edit?.HasErrors ?? false); this.SaveCommandViewModel.OnSuccess += () => this.notificationService.ShowMessage("Saved successfully"); this.SaveCommandViewModel.OnFailure += (ex) => this.notificationService.ShowMessage("Save failed"); this.RemoveCommandViewModel = new CommandViewModel( "Remove", "Remove skier", async() => await this.Parent.RemoveAsync(), withStyle: ButtonStyle.Flat); this.RemoveCommandViewModel.OnSuccess += () => this.notificationService.ShowMessage("Removed successfully"); this.RemoveCommandViewModel.OnFailure += (ex) => this.notificationService.ShowMessage("Remove failed"); }
public LocationController( IMapper mapper, ILocationLogic locationLogic) { this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); this.locationLogic = locationLogic ?? throw new ArgumentNullException(nameof(locationLogic)); }
public UserLogic(IUserRepository repository, ISkillLogic skillLogic, ISparkLogic sparkLogic, ILocationLogic locationLogic) { _repository = repository; _skillLogic = skillLogic; _sparkLogic = sparkLogic; _locationLogic = locationLogic; }
public ILocationLogic GetLocationLogic() { if (locationLogic == null) { locationLogic = new LocationLogic(this.imisModules); } return(locationLogic); }
public ProjectLogic(IProjectRepository repository, ILocationRepository locationRepository, ISkillLogic skillLogic, ISparkLogic sparkLogic, ILocationLogic locationLogic, ICategoryLogic categoryLogic) { _repository = repository; _locationRepository = locationRepository; _skillLogic = skillLogic; _sparkLogic = sparkLogic; _locationLogic = locationLogic; _categoryLogic = categoryLogic; }
public PlaceLogic(ObjectContextEntities context, ICourtLogic courtLogic, ICourtBookLogic bookService, IFileLogic fileService, ILocationLogic locationService, UserAuthentication authentication) { _bookService = bookService; _fileService = fileService; _locationService = locationService; _authentication = authentication; _context = context; _courtLogic = courtLogic; }
public CommonController(ILocationLogic locationLogic) { _locationLogic = locationLogic; }
public ParkingController(IParkingContext context, ILocationLogic locationLogic) { _context = context; _locationLogic = locationLogic; }
public LocationsController(IMapper mapper, ILocationLogic locationLogic) : base(mapper, locationLogic) { }
public LocationController(ILocationLogic location, IMapper mapper) { _location = location; _mapper = mapper; }
public IMasterDataManagementModule SetLocationLogic(ILocationLogic locationLogic) { this.locationLogic = locationLogic; return(this); }
public WeatherController(ILocationLogic locationLogic, IForecastLogic forecastLogic) { _locationLogic = locationLogic; _forecastLogic = forecastLogic; }