Class Transfer
A class holding custom validation method for ITransfer
This is referenced in the transfer validation attributes to use as a method for validating the transfer items
Inheritance
System.Object
Transfer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.API.Entities.Validation
Assembly: API.dll
Syntax
public static class Transfer
Methods
ValidateTransfer(ITransfer, IEntityUpdater, IReadOnlyCache, UserInfo, ValidationContext)
Given a transfer this validates the record is correctly setup for processing a transfer operation
Declaration
public static Task<ValidationResult> ValidateTransfer(ITransfer transfer, IEntityUpdater dbCon, IReadOnlyCache cache, UserInfo user, ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ITransfer | transfer | The transfer to validate |
IEntityUpdater | dbCon | The context the transfer is being validated within |
IReadOnlyCache | cache | A local cache |
UserInfo | user | The currently logged in user |
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | The validation context this is being validated with. Can be used via Helper |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ComponentModel.DataAnnotations.ValidationResult> | System.ComponentModel.DataAnnotations.ValidationResult.Success if the transfer is correctly setup |
Remarks
Currently only validates that the transfer allocated up to date is greater than or equal to the transfer date itself.