Example #1
0
        public static string Get(int id)
        {
            Company c = new Company(id);
            if (c == null)
                return "not found";

            return c.ToJSon();
        }
Example #2
0
        private static Company FromReader(Company c, IRecordsReader rr)
        {
            c.Id = rr.GetInt("id");
            c.Category = rr.GetString("category");
            c.Name = rr.GetString("name");
            c.Symbol = rr.GetString("symbol");

            return c;
        }
Example #3
0
 private static Company FromReader(IRecordsReader rr)
 {
     Company c = new Company();
     return FromReader(c, rr);
 }