public ProfileController( HttpServerUtilityBase server, IUploadService <Tag> uploadTagService, IModifyService <Photo> modifyPhotoService, IDeleteService <Photo> deletePhotoService, IPhotoService photoService, IPhotoUploader photoUploader, IPhotoConverter photoConverter, ITagsHelper tagsHelper) { Guard.WhenArgument(server, "server").IsNull().Throw(); Guard.WhenArgument(uploadTagService, "uploadTagService").IsNull().Throw(); Guard.WhenArgument(modifyPhotoService, "modifyPhotoService").IsNull().Throw(); Guard.WhenArgument(deletePhotoService, "deletePhotoService").IsNull().Throw(); Guard.WhenArgument(photoService, "photoService").IsNull().Throw(); Guard.WhenArgument(photoUploader, "photoUploader").IsNull().Throw(); Guard.WhenArgument(photoConverter, "photoConverter").IsNull().Throw(); Guard.WhenArgument(tagsHelper, "tagsHelper").IsNull().Throw(); this.server = server; this.uploadTagService = uploadTagService; this.modifyPhotoService = modifyPhotoService; this.deletePhotoService = deletePhotoService; this.photoService = photoService; this.photoUploader = photoUploader; this.photoConverter = photoConverter; this.tagsHelper = tagsHelper; }
public ProfilePage() { InitializeComponent(); _studentService = new StudentService((string)Application.Current.Properties["jwt"]); _modifyService = new ModifyService((string)Application.Current.Properties["jwt"]); Init(); }
async void Init() { _courseService = new CourseService((string)Application.Current.Properties["jwt"]); _modifyService = new ModifyService((string)Application.Current.Properties["jwt"]); List <Course> l = await _courseService.getCourseListAsync(); CourseViewModel test = new CourseViewModel(l); //test.test(); BindingContext = test; }
public HomeController(IGetInfoService dbGet, IModifyService dbMod, ISearchService dbSearch) { this.dbGet = dbGet; this.dbMod = dbMod; this.dbSearch = dbSearch; }
public TracksController(IGetInfoService dbGet, IModifyService dbMod) { this.dbGet = dbGet; this.dbMod = dbMod; }