Beispiel #1
0
    public EntityVO getDetails(int i)
    {
        FVSL_LINQDataContext dbcon = new FVSL_LINQDataContext();

        CompanyVO EMP = new CompanyVO();

        try
        {

            List<EMP_Empresa> resultset = dbcon.MAPA_EMP_DETAILS(i).ToList();

            if (resultset.Count == 1)
            {
                EMP = FEMP(resultset[0]);
            }

            return EMP;
        }
        catch (Exception e)
        {
            Logging.WriteError(e.StackTrace.ToString());
            return null;
        }
    }