public AwardWindow(AwardDataDTO awardData, AwardMixedDTO award, ObservableCollection <CategoryDTO> categoriesList)
 {
     AEViewModel = new AwardEditViewModel(categoriesList)
     {
         OriginalAward = awardData, MixedDTO = award
     };
     InitializeComponent();
 }
예제 #2
0
        public ActionResult Edit(AwardEditViewModel _award)
        {
            if (ModelState.IsValid)
            {
                var entity = _mapper.Map <AwardsModel>(_awardManager.Get(_award.Id));
                entity.Name = _award.Name;
                _awardManager.Update(entity);

                return(RedirectToAction("Index"));
            }

            return(View(_award));
        }
 public AwardWindow(Award award, List <int> festivalsList, ObservableCollection <Category> categoriesList)
 {
     AEViewModel = new AwardEditViewModel(award, festivalsList, categoriesList);
     InitializeComponent();
 }
 public AwardWindow(AwardDataDTO awardData, AwardMixedDTO award, ObservableCollection<CategoryDTO> categoriesList)
 {
     AEViewModel = new AwardEditViewModel(categoriesList){OriginalAward = awardData,  MixedDTO = award};
     InitializeComponent();
 }
 public AwardWindow(ObservableCollection<CategoryDTO> categoriesList)
 {
     AEViewModel = new AwardEditViewModel(categoriesList);
     InitializeComponent();
 }
 public AwardWindow(ObservableCollection <CategoryDTO> categoriesList)
 {
     AEViewModel = new AwardEditViewModel(categoriesList);
     InitializeComponent();
 }