diff --git a/HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs b/HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs deleted file mode 100644 index dac2eb9..0000000 --- a/HardwareShop/HardwareShopContracts/BindingModels/MessageInfoBindingModel.cs +++ /dev/null @@ -1,19 +0,0 @@ -using HardwareShopDataModels.Models; - -namespace HardwareShopContracts.BindingModels -{ - public class MessageInfoBindingModel : IMessageInfoModel - { - public string MessageId { get; set; } = string.Empty; - - public int? UserId { get; set; } - - public string SenderName { get; set; } = string.Empty; - - public string Subject { get; set; } = string.Empty; - - public string Body { get; set; } = string.Empty; - - public DateTime DateDelivery { get; set; } - } -} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs b/HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs deleted file mode 100644 index 06afb02..0000000 --- a/HardwareShop/HardwareShopDataModels/Models/IMessageInfoModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace HardwareShopDataModels.Models -{ - public interface IMessageInfoModel - { - string MessageId { get; } - - int? UserId { get; } - - string SenderName { get; } - - DateTime DateDelivery { get; } - - string Subject { get; } - - string Body { get; } - } -} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs b/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs index 464bb85..6a3dbc8 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs @@ -11,7 +11,7 @@ namespace HardwareShopDatabaseImplement { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=Computer_Hardware_Store1;Username=user;Password=12345"); + optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=Computer_Hardware_Store5;Username=postgres;Password=1234"); AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); }