Exemplo n.º 1
0
        public async Task <IActionResult> Delete(string id)
        {
            var user = await _context.Users.FindAsync(id);

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

            _crudRepository.DeleteUser(user);

            return(Accepted());
        }
 public IActionResult Delete(int id)
 {
     _repository.DeleteUser(id);
     return(Ok());
 }