예제 #1
0
    public EntityVO getDetails(int incoop)
    {
        FVSL_LINQDataContext dbcon = new FVSL_LINQDataContext();                //Create LINQ-SQL connection

            CooperantVO result = new CooperantVO();

            try
            {
                List<tb_Coperante> resultset = dbcon.MAPA_COOP_DETAILS(incoop).ToList() ;

                if (resultset.Count == 1)                                      //Start reading Resulset list, and adding to Result
                {
                     result = FCOOP(resultset[0]);

                }

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