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)); }
public UpdateFestival(Festival festival) { InitializeComponent(); DataContext = new UpdateFestivalViewModel(this, festival); }