public async Task <IActionResult> CreateShooterTeamPayment(ShooterTeamPaymentCreateRequest request) { //Creazione modello richiesto da admin var model = new ShooterTeamPayment { ShooterId = request.ShooterId, TeamId = request.TeamId, Amount = request.Amount, Reason = request.Reason, PaymentDateTime = request.PaymentDateTime, ExpireDateTime = request.ExpireDateTime, NotifyExpiration = request.NotifyExpiration }; //Invocazione del service layer var validations = await BasicLayer.CreateShooterTeamPayment(model, PlatformUtils.GetIdentityUserId(User)); if (validations.Count > 0) { return(BadRequest(validations)); } //Return contract return(Ok(ContractUtils.GenerateContract(model))); }