Esempio n. 1
0
        public async Task <int> Handle(CreateClaimCommand command, CancellationToken cancellationToken)
        {
            var newClaim = new Claim(command.Date, command.UserId, command.Description, command.Incidence, command.DamagedItem, command.Street, command.City, command.Country);
            await _claimRepository.AddAsync(newClaim);

            return(newClaim.ClaimId);
        }