public TournamentLocationModel(LocationTypesEnum locationType)
 {
     LocationType = locationType.ToString();
 }
Пример #2
0
 /// <summary>
 /// Get locations of a particular type
 /// </summary>
 /// <param name="lte">LocationTypesEnum value</param>
 /// <param name="db">instance of the petapoco repository</param>
 /// <returns></returns>
 public static SelectList GetLocations(LocationTypesEnum lte, Repository db, int?selectedValue = null) =>
 (
     new SelectList(db.Fetch <Location>("Select LocationID,LocationName from Location where LocationTypeId=@0", lte), "LocationID", "LocationName", selectedValue)
 );