Exemple #1
0
    public static List <ListItem> GetFotoActividad(string idFoto)
    {
        try
        {
            var codigo = HttpContext.Current.Session["lgn_codigo"].ToString();

            List <ListItem> lstComboBean = OportunidadController.GetFotoActividad(idFoto).
                                           Select(x => new ListItem()
            {
                Text  = x.Codigo,
                Value = x.Nombre
            }).ToList();

            return(lstComboBean);
        }
        catch (Exception ex)
        {
            LogHelper.LogException(ex, "Error :Actividad_GetFoto: ");
            return(new List <ListItem>());
        }
    }