Ejemplo n.º 1
0
        public async Task <ActionResult> Add(RegistrationViewModel registrationViewModel)
        {
            try
            {
                await registrationService.AddAsync(mapper.Map <RegistrationDTO>(registrationViewModel));

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