Пример #1
0
 private Rank(Datamodel.Rank r)
 {
     id       = r.id;
     name     = r.name;
     abbrev   = r.abrv;
     ordering = r.ordering;
 }
Пример #2
0
 /// <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);
     }
 }