예제 #1
0
        public async Task <ActionResult> Add(SeminarViewModel seminarViewModel)
        {
            try
            {
                await seminarService.AddAsync(mapper.Map <SeminarDTO>(seminarViewModel));

                return(RedirectToAction(nameof(Seminar)));
            }
            catch (Exception ex)
            {
                var test = ex;
                return(View());
            }
        }