Exemplo n.º 1
0
 private void BindPage()
 {
     BindingContext = new SettingsListViewModel()
     {
         Navigation = this.Navigation
     };
 }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            var settings = this.repository.All().To <SettingViewModel>().ToList();
            var model    = new SettingsListViewModel {
                Settings = settings
            };

            return(this.View(model));
        }
Exemplo n.º 3
0
        public IActionResult Index()
        {
            var settings = this.settingsService.GetAll <SettingViewModel>();
            var model    = new SettingsListViewModel {
                Settings = settings
            };

            return(this.View(model));
        }
Exemplo n.º 4
0
        public IActionResult Index()
        {
            var settings = this.settingsService.GetAll <SettingViewModel>();
            var model    = new SettingsListViewModel {
                Settings = (System.Collections.Generic.IEnumerable <SettingViewModel>)settings
            };

            return(this.View(model));
        }
Exemplo n.º 5
0
        public IActionResult Index()
        {
            var configuration = new MapperConfiguration(cfg =>
                                                        cfg.CreateMap <Setting, SettingsViewModel>().ReverseMap());

            var settings = this.repository.All().ProjectTo <SettingsViewModel>(configuration).ToList();
            var model    = new SettingsListViewModel {
                Settings = settings
            };

            return(this.View(model));
        }
Exemplo n.º 6
0
        public async Task <IActionResult> DeleteImg()
        {
            //var userImageUrl = this.userService.GetUserProfileImageIfExists(this.User.Identity.Name);

            // this.cloudinaryService.DeleteAnImage(userImageUrl);

            var settings = this.repository.All().To <SettingViewModel>().ToList();
            var model    = new SettingsListViewModel {
                Settings = settings
            };

            return(this.Content("Ready"));
        }
Exemplo n.º 7
0
 public SettingsTab()
 {
     InitializeComponent();
     DataContext = new SettingsListViewModel();
 }