public static string Get(int id) { Company c = new Company(id); if (c == null) return "not found"; return c.ToJSon(); }
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; }
private static Company FromReader(IRecordsReader rr) { Company c = new Company(); return FromReader(c, rr); }