private Rank(Datamodel.Rank r) { id = r.id; name = r.name; abbrev = r.abrv; ordering = r.ordering; }
/// <summary> /// Gets a rank by ID /// </summary> /// <param name="id"></param> /// <returns></returns> public static Rank FetchById(int id) { Datamodel.Rank r = null; if (Datamodel.Rank.FetchById(ref r, id)) { return(new Rank(r)); } else { return(null); } }