namespace Publication.Entites; using System.ComponentModel; public class PublishingHouse { public int Id { get; set; } [DisplayName("Название")] public string Title { get; set; } [DisplayName("Адрес")] public string Address { get; set; } [DisplayName("Рабочий телефон")] public string WorkPhone { get; set; } public static PublishingHouse CreateEntity(int id, string title, string address, string workPhone) { return new PublishingHouse { Id = id, Address = address, Title = title, WorkPhone = workPhone }; } }