public Room(int roomID, RLocation category, RoomType type, int x, int y, string doorLocations) { this.roomID = roomID; this.category = category; this.type = type; this.x = x; this.y = y; this.dLocations = doorLocations; }
public static LocationViewModel ToModel(this RLocation location) { if (location == null) { return(null); } return(new LocationViewModel() { DistrictId = location.DistrictId, WardId = location.WardId, ProvinceId = location.ProvinceId, StreetId = location.StreetId, FullAddress = location.FullAddress }); }