コード例 #1
0
        public async Task <ActionResult> Edit(SeminarViewModel seminarViewModel)
        {
            try
            {
                await seminarService.UpdateAsync(mapper.Map <SeminarDTO>(seminarViewModel));

                return(RedirectToAction(nameof(Seminar)));
            }
            catch
            {
                return(View());
            }
        }