Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

151
Visualizações
Ask for user confirmation then continue with the method mvc 5 c#

in the code I have a method that reads data from an excel sheet and store the record in a list, I want to compare certain columns with the database records if they exist I want to ask the user (take the user conformation with "confirm" in javascript for example) if he wants to replace the new data with the old one or keep the old one, my issue is how can I go to the view to ask the user then go back to continue with my method? or if there is a way to ask the user without going to the view

my controller

 foreach (var n in KPlist)
                {

                    var compare = _db.Kpiprograms.Where(x => x.ProgramId == n.ProgramId && x.Year == n.Year && x.Term == n.Term && x.KpiId == n.KpiId).Any();
                    if (compare)
                    {
                      //am stuck here 
                    }
                 
                }
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda