public IActionResult Index(string ide)
 {
     if (!string.IsNullOrEmpty(ide))
     {
         ide = EngineTool.DecodeBase64(ide);
         string[] parts = ide.Split("#");
         var      model = EmpresaClienteRepository.UpdateStatusEmpresaCliente(parts[0], parts[1], parts[2], true);
         if (model.Id > 0)
         {
             ViewBag.Result      = true;
             ViewBag.Description = "Tu cuenta fue activada correctamente";
         }
     }
     return(this.View());
 }
示例#2
0
 private string DecodeData(string data)
 {
     return(EngineTool.DecodeBase64(data));
 }
示例#3
0
        public Person GetPerson2(string identificador)
        {
            Person person = null;

            try
            {
                using (EngineContext context = new EngineContext())
                {
                    person = context.Person.Where(s => s.Identificador == identificador).FirstOrDefault();
                    if (person != null)
                    {
                        return(person);
                    }
                }
            }
            catch (Exception ex)
            {
                InsertarSucesoLog(Funcion.ConstruirSucesoLog(ex.ToString() + "*EngineDb/GetPerson*" + Tool.DecodeBase64(identificador)));
            }
            return(null);
        }