initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace Indotalent.Features.Inventory.Scrapping.Cqrs;
|
||||
|
||||
public class CreateScrappingValidator : AbstractValidator<CreateScrappingRequest>
|
||||
{
|
||||
public CreateScrappingValidator()
|
||||
{
|
||||
RuleFor(x => x.ScrappingDate).NotEmpty().WithMessage("Scrapping Date is required");
|
||||
RuleFor(x => x.WarehouseId).NotEmpty().WithMessage("Warehouse is required");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user