Ejemplo n.º 1
0
        private async Task <int> CrearPersona(Ekilibrate.Model.Entity.Participante.clsParticipante item)
        {
            Ekilibrate.ad.General.clsPersona objPersona = new Ekilibrate.ad.General.clsPersona(_lifetimeScope);
            var p = await objPersona.GetByCorreo(item.Correo);

            if (p == null)
            {
                return(await objPersona.Insert(item));
            }
            else
            {
                return(p.Id);
            }
        }