33 lines
1.4 KiB
C#
33 lines
1.4 KiB
C#
using PostFundManagement.Domain;
|
|
using static PostFundManagement.Domain.Extensions.Constants;
|
|
|
|
namespace PostFundManagement.Application.Services.Governance;
|
|
|
|
public record UpdatePortfolioRequest([Required] long PortfolioId,
|
|
[Required][MaxLength(LabelLength)] string Name,
|
|
[Required][MaxLength(TextLength)] string Description,
|
|
[Required] Guid OwnerId);
|
|
|
|
public record CreatePortfolioRequest([Required][MaxLength(LabelLength)] string Name,
|
|
[Required][MaxLength(TextLength)] string Description,
|
|
[Required] long OrganisationId,
|
|
[Required] Guid OwnerId);
|
|
|
|
public record UpdateOrganisationRequest([Required] long OrganisationId,
|
|
[Required][MaxLength(LabelLength)] string Name,
|
|
[Required][MaxLength(LabelLength)] string RegistrationNo,
|
|
[Required][EmailAddress][MaxLength(LabelLength)] string Email,
|
|
[Required] OrganisationType Type);
|
|
|
|
public record CreateOrganisationRequest([Required][MaxLength(LabelLength)] string Name,
|
|
[Required][MaxLength(LabelLength)] string RegistrationNo,
|
|
[Required][EmailAddress][MaxLength(LabelLength)] string Email,
|
|
[Required] OrganisationType Type = OrganisationType.PrivateLimitedCompany);
|
|
|
|
public record Dashboard([Required] decimal PortfolioValue,
|
|
[Required] int ActiveAwards,
|
|
[Required] decimal Disbursed,
|
|
[Required] double OnTrackPercentage,
|
|
[Required] int AtRiskCount,
|
|
[Required] int BeneficiariesReached);
|