Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

226
Vistas
best practice to store multiple inputs value

I have created an asp.net web API project with angular in the front-end. I have to create a model like this :

enter image description here

but using a formGroup in typeScript will cost a lot of time and energy, same in the backend I have to create a +50 query to store the data.

this.formGroup=this.fb.group({

  siloA1:['',Validators.required],
  siloA2:['',Validators.required],
  siloA3:['',Validators.required],
  siloA4:['',Validators.required],
  siloA5:['',Validators.required],
  siloA6:['',Validators.required],
 .............

in the service .net I have to repeat this code for every input :

shiftTranferStatusAdded = new ShiftTranferStatus
                    {
                        subsystemId = option.silo,
                        unitId = option.unite_id
                    };
                    shiftTranferAdded = _dbContext.shiftTranfers.Add(shiftTranferAdded);

Which are the steps to follow to achieve that?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda