Refactored Test email service to provide the error message if it fails to the end user. (#1051)
This commit is contained in:
parent
9ce0aa39ce
commit
edbb985405
5 changed files with 50 additions and 21 deletions
10
API/DTOs/Email/EmailTestResultDto.cs
Normal file
10
API/DTOs/Email/EmailTestResultDto.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace API.DTOs.Email;
|
||||
|
||||
/// <summary>
|
||||
/// Represents if Test Email Service URL was successful or not and if any error occured
|
||||
/// </summary>
|
||||
public class EmailTestResultDto
|
||||
{
|
||||
public bool Successful { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue