diff --git a/Controllers/GiriController.cs b/Controllers/GiriController.cs index 1daedfe..1125e45 100644 --- a/Controllers/GiriController.cs +++ b/Controllers/GiriController.cs @@ -708,11 +708,12 @@ namespace ApiSoftway.Controllers var ti = await _sbrord.Where(t => t.Brserial.Equals(model.Serial)).FirstAsync(); string _committente = ti.Brcodcom; string _cliFatturazione = ti.Brclifat; + string _codSede = ti.Brcodsed; int seque = ti.Brnumseq.Value; t.Cca = _committente; t.Ccda=_cliFatturazione; t.Cprownum = seque; - + t.Piconseg=_codSede; //Step 3 : testata diff --git a/Models/Sbr_ord.cs b/Models/Sbr_ord.cs index fd928e8..878483a 100644 --- a/Models/Sbr_ord.cs +++ b/Models/Sbr_ord.cs @@ -10,5 +10,6 @@ namespace ApiSoftway.Models public string? Brcodcom { get; set; } public string? Brclifat { get; set; } public int? Brnumseq { get; set; } + public string? Brcodsed { get; set; } } } diff --git a/Program.cs b/Program.cs index d739c30..7688b2a 100644 --- a/Program.cs +++ b/Program.cs @@ -74,5 +74,5 @@ app.UseAuthorization(); app.MapControllers(); -app.Run(); -//app.Run("http://localhost:6000"); +//app.Run(); +app.Run("http://localhost:6000");