Exemplo n.º 1
0
 public void ActualizarFoto()
 {
     try
     {
         if (Session["UserData"] != null)
         {
             Usuario userData = (Usuario)Session["UserData"];
             ((Usuario)Session["UserData"]).Foto = _servicioUsuarios.ObtenerFoto(userData.Id);
             userData           = (Usuario)Session["UserData"];
             imgPerfil.ImageUrl = userData.Foto != null ? "~/DisplayImages.ashx?id=" + userData : "~/assets/images/profiles/profile-1.png";
         }
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         Alerta = _lstError;
         AlertaSucces(_lstError.ToString());
     }
 }