示例#1
0
        public async Task <IActionResult> Delete(int id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var user = connect.DeleteData(id);

            if (user == null)
            {
                return(NotFound());
            }

            return(LocalRedirect(nameof(Index)));
        }