PWA Fundvelo der Caritas.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ZipCity.cs 611B

1234567891011121314151617181920212223242526
  1. namespace cwebplusApp.Shared.Models {
  2. public class ZipCity {
  3. public string Zip { get; set; }
  4. public string City { get; set; }
  5. public string Zip_City { get; set; }
  6. public ZipCity() {
  7. }
  8. public ZipCity(string zipCity) {
  9. Zip_City = zipCity;
  10. Zip = zipCity.Split(' ')[0];
  11. City = zipCity.Replace(Zip + " ", "");
  12. }
  13. public ZipCity(string _zip, string _city) {
  14. Zip = _zip;
  15. City = _city;
  16. Zip_City = (_zip + " " + _city).Trim();
  17. }
  18. }
  19. }