diff --git a/Mail/IMailService.cs b/Mail/IMailService.cs new file mode 100644 index 0000000..53c7222 --- /dev/null +++ b/Mail/IMailService.cs @@ -0,0 +1,11 @@ +using Promact.Core.Models; +using System.Threading.Tasks; + +namespace Promact.Core.Mail +{ + public interface IMailService + { + Task SendEmailAsync(SimpleEmailRequest simpleEmailRequest); + Task SendTemplatedEmailAsync(TemplatedEmailRequest templatedEmailRequest); + } +} diff --git a/Models/SendEmailResult.cs b/Models/SendEmailResult.cs new file mode 100644 index 0000000..aa1956d --- /dev/null +++ b/Models/SendEmailResult.cs @@ -0,0 +1,8 @@ +namespace Promact.Core.Models +{ + public class SendEmailResult + { + public bool IsSuccess { get; set; } + public string? ErrorMessage { get; set; } + } +} diff --git a/Models/SimpleEmailRequest.cs b/Models/SimpleEmailRequest.cs new file mode 100644 index 0000000..cc6a3be --- /dev/null +++ b/Models/SimpleEmailRequest.cs @@ -0,0 +1,6 @@ +namespace Promact.Core.Models +{ + public class SimpleEmailRequest + { + } +} diff --git a/Models/TemplatedEmailRequest.cs b/Models/TemplatedEmailRequest.cs new file mode 100644 index 0000000..f53d003 --- /dev/null +++ b/Models/TemplatedEmailRequest.cs @@ -0,0 +1,6 @@ +namespace Promact.Core.Models +{ + public class TemplatedEmailRequest + { + } +} diff --git a/Promact.Core.csproj b/Promact.Core.csproj new file mode 100644 index 0000000..b4b43f4 --- /dev/null +++ b/Promact.Core.csproj @@ -0,0 +1,8 @@ + + + + netstandard2.1 + enable + + + diff --git a/Promact.Core.sln b/Promact.Core.sln new file mode 100644 index 0000000..17981bd --- /dev/null +++ b/Promact.Core.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Promact.Core", "Promact.Core.csproj", "{CF4E708F-CCAF-4929-9ED4-05879CC1AEA3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CF4E708F-CCAF-4929-9ED4-05879CC1AEA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF4E708F-CCAF-4929-9ED4-05879CC1AEA3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF4E708F-CCAF-4929-9ED4-05879CC1AEA3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF4E708F-CCAF-4929-9ED4-05879CC1AEA3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4E502DDF-5C02-4E8E-92F3-B5FEE417C357} + EndGlobalSection +EndGlobal