Ejemplo n.º 1
0
        public async Task <IActionResult> Home(RegisterConsultative registerConsultative)
        {
            if (ModelState.IsValid)
            {
                var model = await _registerConsultativeService.AddAsync(registerConsultative);

                return(RedirectToAction("RegisterSuccess", "RegisterConsultative"));
            }
            return(View(registerConsultative));
        }
        public async Task <IActionResult> AddAsync([FromBody] RegisterConsultative registerConsultative)
        {
            var model = await _registerConsultativeService.AddAsync(registerConsultative);

            return(Ok(model));
        }