Exemplo n.º 1
0
        // POST: CUsers/Delete/5
        public async Task <IActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            await _userRep.DeleteUser(id.Value);

            await _userRep.Save();

            Success();
            return(RedirectToAction(nameof(Index)));
        }