Arreglo - No aparecia toma de posesion cuando tenia puestos en otra RPT
This commit is contained in:
@@ -714,6 +714,7 @@
|
|||||||
var Presponse = await client.PostAsync("/api/PUESTOS/getActivos", Pcontent);
|
var Presponse = await client.PostAsync("/api/PUESTOS/getActivos", Pcontent);
|
||||||
var PCont = await Presponse.Content.ReadAsStringAsync();
|
var PCont = await Presponse.Content.ReadAsStringAsync();
|
||||||
List<bdAntifraude.db.PUESTOS> lpue = JsonConvert.DeserializeObject<List<PUESTOS>>(PCont) ?? new List<PUESTOS>();
|
List<bdAntifraude.db.PUESTOS> lpue = JsonConvert.DeserializeObject<List<PUESTOS>>(PCont) ?? new List<PUESTOS>();
|
||||||
|
lpue = lpue.Where(x => x.IDRPT == IDRPT1).ToList();
|
||||||
if (lpue.Count > 0)
|
if (lpue.Count > 0)
|
||||||
{
|
{
|
||||||
IDPUESTOACTUAL = lpue.First().IDPUESTO;
|
IDPUESTOACTUAL = lpue.First().IDPUESTO;
|
||||||
|
|||||||
Reference in New Issue
Block a user