-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tsylia/ Added the feature that allows the creation of a group of chil…
…dren by … (#1006) * Added the feature that allows the creation of a group of children by the list. * Added the limit of the children that are created.
- Loading branch information
1 parent
725ee8c
commit 0c03025
Showing
10 changed files
with
379 additions
and
212 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace OutOfSchool.WebApi.Config; | ||
|
||
public class ParentConfig | ||
{ | ||
public const string Name = "Parent"; | ||
|
||
public int ChildrenMaxNumber { get; set; } | ||
} |
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
12 changes: 12 additions & 0 deletions
12
OutOfSchool/OutOfSchool.WebApi/Models/ChildCreationResult.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,12 @@ | ||
using OutOfSchool.WebApi.Common; | ||
|
||
namespace OutOfSchool.WebApi.Models; | ||
|
||
public class ChildCreationResult | ||
{ | ||
public ChildDto Child { get; set; } | ||
|
||
public bool IsSuccess { get; set; } | ||
|
||
public string Message { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
OutOfSchool/OutOfSchool.WebApi/Models/ChildrenCreationResponse.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 OutOfSchool.WebApi.Common; | ||
|
||
namespace OutOfSchool.WebApi.Models; | ||
|
||
public class ChildrenCreationResponse | ||
{ | ||
public ParentDTO Parent { get; set; } | ||
|
||
public List<ChildCreationResult> ChildrenCreationResults { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
OutOfSchool/OutOfSchool.WebApi/Models/ChildrenCreationResultDto.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 OutOfSchool.WebApi.Common; | ||
|
||
namespace OutOfSchool.WebApi.Models; | ||
|
||
public class ChildrenCreationResultDto | ||
{ | ||
public ParentDTO Parent { get; set; } | ||
|
||
public List<ChildCreationResult> ChildrenCreationResults { get; set; } = new List<ChildCreationResult>(); | ||
} |
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.