+ @{
+ if (Model == null)
+ {
+
Авторизируйтесь
+ return;
+ }
+
+
+
+
+
+ Дата письма
+ |
+
+ Заголовок
+ |
+
+ Текст
+ |
+
+
+
+ @foreach (var item in Model)
+ {
+
+
+ @Html.DisplayFor(modelItem => item.DateDelivery)
+ |
+
+ @Html.DisplayFor(modelItem => item.Subject)
+ |
+
+ @Html.DisplayFor(modelItem => item.Body)
+ |
+
+ }
+
+
+ }
+
\ No newline at end of file
diff --git a/SoftwareInstallationContracts/BindingModels/MailConfigBindingModel.cs b/SoftwareInstallationContracts/BindingModels/MailConfigBindingModel.cs
new file mode 100644
index 0000000..2a19212
--- /dev/null
+++ b/SoftwareInstallationContracts/BindingModels/MailConfigBindingModel.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SoftwareInstallationContracts.BindingModels
+{
+ public class MailConfigBindingModel
+ {
+ public string MailLogin { get; set; } = string.Empty;
+ public string MailPassword { get; set; } = string.Empty;
+ public string SmtpClientHost { get; set; } = string.Empty;
+ public int SmtpClientPort { get; set; }
+ public string PopHost { get; set; } = string.Empty;
+ public int PopPort { get; set; }
+ }
+}
diff --git a/SoftwareInstallationContracts/BindingModels/MailSendInfoBingingModel.cs b/SoftwareInstallationContracts/BindingModels/MailSendInfoBingingModel.cs
new file mode 100644
index 0000000..8a05240
--- /dev/null
+++ b/SoftwareInstallationContracts/BindingModels/MailSendInfoBingingModel.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SoftwareInstallationContracts.BindingModels
+{
+ public class MailSendInfoBindingModel
+ {
+ public string MailAddress { get; set; } = string.Empty;
+ public string Subject { get; set; } = string.Empty;
+ public string Text { get; set; } = string.Empty;
+ }
+
+}
diff --git a/SoftwareInstallationContracts/BindingModels/MessageInfoBindingModel.cs b/SoftwareInstallationContracts/BindingModels/MessageInfoBindingModel.cs
new file mode 100644
index 0000000..b9f6582
--- /dev/null
+++ b/SoftwareInstallationContracts/BindingModels/MessageInfoBindingModel.cs
@@ -0,0 +1,24 @@
+using SoftwareInstallationDataModels.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SoftwareInstallationContracts.BindingModels
+{
+ public class MessageInfoBindingModel : IMessageInfoModel
+ {
+ public string MessageId { get; set; } = string.Empty;
+
+ public int? ClientId { 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; }
+ }
+}
diff --git a/SoftwareInstallationContracts/BusinessLogicsContracts/IMessageInfoLogic.cs b/SoftwareInstallationContracts/BusinessLogicsContracts/IMessageInfoLogic.cs
new file mode 100644
index 0000000..bfa39ed
--- /dev/null
+++ b/SoftwareInstallationContracts/BusinessLogicsContracts/IMessageInfoLogic.cs
@@ -0,0 +1,13 @@
+using SoftwareInstallationContracts.BindingModels;
+using SoftwareInstallationContracts.SearchModels;
+using SoftwareInstallationContracts.ViewModels;
+
+namespace SoftwareInstallationContracts.BusinessLogicsContracts
+{
+ public interface IMessageInfoLogic
+ {
+ List