using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace АвтотранспортноеПредприятие.Models
{
    public class Address
    {
        public int address_id { get; set; }
        public string city { get; set; }
        public string street { get; set; }
        public string house_number { get; set; }
        public string building { get; set; }

        public string FullAddress => $"{city}, {street}, {house_number}{(string.IsNullOrEmpty(building) ? "" : $" корп.{building}")}";
    }
}
