-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete of Organizations and persons #178
- Loading branch information
1 parent
96701d2
commit 857a785
Showing
24 changed files
with
5,398 additions
and
97 deletions.
There are no files selected for viewing
6 changes: 1 addition & 5 deletions
6
src/Ermes.Application/Ermes/Organizations/Dto/DeleteOrganizationInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/Ermes.Application/Ermes/Profile/Dto/DeleteProfileInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace Ermes.Profile.Dto | ||
{ | ||
public class DeleteProfileInput | ||
{ | ||
public Guid Id { get; set; } | ||
public bool HardDelete { get; set; } | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Ermes.Application/Ermes/Profile/Dto/ReactivateProfileInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Abp.Runtime.Validation; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Ermes.Profile.Dto | ||
{ | ||
public class ReactivateProfileInput : ICustomValidate | ||
{ | ||
[Required] | ||
public string Email { get; set; } | ||
|
||
public void AddValidationErrors(CustomValidationContext context) | ||
{ | ||
if(Email == null || Email == string.Empty) | ||
context.Results.Add(new ValidationResult("Email address required")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.