File tree 3 files changed +9
-5
lines changed
MailsService.Model/Entities
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
using MailsService . Model . Abstractions ;
2
2
using Microsoft . EntityFrameworkCore ;
3
+ using System . ComponentModel . DataAnnotations ;
3
4
4
5
namespace MailsService . Model . Entities
5
6
{
6
7
[ Owned ]
7
8
public class AuditMessageStatus
8
9
{
9
- public ResultStatus Result { get ; set ; } = ResultStatus . None ;
10
+ public ResultStatus Result { get ; set ; } = ResultStatus . ToSend ;
10
11
public string FailedMassage { get ; set ; } = string . Empty ;
11
12
public DateTime SentDate { get ; set ; }
12
13
}
13
14
14
15
public enum ResultStatus : byte
15
16
{
16
- None ,
17
+ [ Display ( Name = "Need to send" ) ]
18
+ ToSend ,
19
+ [ Display ( Name = "Ok" ) ]
17
20
Ok ,
18
- False
21
+ [ Display ( Name = "Falied" ) ]
22
+ Falied
19
23
}
20
24
}
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ namespace MailsService.Model.Entities
5
5
[ Owned ]
6
6
public class Recipient
7
7
{
8
- public string email { get ; set ; } = string . Empty ;
8
+ public string Email { get ; set ; } = string . Empty ;
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace MailsService.Model.Entities
6
6
/// This object is a report line for db
7
7
/// </summary>
8
8
/// <remarks></remarks>
9
- public class SentMessage : AuditModel < int >
9
+ public class SentReport : AuditModel < int >
10
10
{
11
11
public Message ? Message { get ; set ; }
12
12
public Recipient ? Recipient { get ; set ; }
You can’t perform that action at this time.
0 commit comments