Esempio n. 1
0
        public static List <RS> GetRS()
        {
            List <RS> RSList = new List <RS>();

            try
            {
                using (var dc = new PinereDataContext(PinereConstant.PinereConnectionString))
                {
                    RSList = (from a in dc.GetRS()
                              select new RS
                    {
                        Id = a.Id.ToString(),
                        Nama = a.Nama,
                        Alamat = a.Alamat
                    }).ToList();
                }
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
            return(RSList);
        }