public static TownshipDTO MapFieldValues(EF.Township dbItem) { if (dbItem == null) return null; TownshipDTO retVal = new TownshipDTO() { TownNum = dbItem.TownNum, Name = dbItem.Name }; return retVal; }
public virtual ITownship Create(TownshipDTO dto) { return new Township(dto); }
public Township(TownshipDTO data) { this.Data = data; }