Пример #1
0
        public async Task <IActionResult> UpdateFestivalAsync([FromBody] UpdateFestivalViewModel updateFestivalViewModel)
        {
            var updateFestivalDTO = _mapper.Map <UpdateFestivalDTO>(updateFestivalViewModel);

            var festivalDTO = await _festivalService.UpdateFestivalAsync(updateFestivalDTO);

            var festivalViewModel = _mapper.Map <FestivalViewModel>(festivalDTO);

            return(Ok(festivalViewModel));
        }
Пример #2
0
 public UpdateFestival(Festival festival)
 {
     InitializeComponent();
     DataContext = new UpdateFestivalViewModel(this, festival);
 }