private void BindPage() { BindingContext = new SettingsListViewModel() { Navigation = this.Navigation }; }
public IActionResult Index() { var settings = this.repository.All().To <SettingViewModel>().ToList(); var model = new SettingsListViewModel { Settings = settings }; return(this.View(model)); }
public IActionResult Index() { var settings = this.settingsService.GetAll <SettingViewModel>(); var model = new SettingsListViewModel { Settings = settings }; return(this.View(model)); }
public IActionResult Index() { var settings = this.settingsService.GetAll <SettingViewModel>(); var model = new SettingsListViewModel { Settings = (System.Collections.Generic.IEnumerable <SettingViewModel>)settings }; return(this.View(model)); }
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)); }
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")); }
public SettingsTab() { InitializeComponent(); DataContext = new SettingsListViewModel(); }