Ejemplo n.º 1
0
        public async Task <IActionResult> Create(Subscriber subscriber)
        {
            if (ModelState.IsValid)
            {
                await _invoicesRepository.AddSubscriberAsync(subscriber);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(subscriber));
        }