public async Task <IActionResult> CreateTeam(TeamCreateRequest request) { //Creazione modello richiesto da admin var model = new Team { Name = request.Name }; //Invocazione del service layer var validations = await BasicLayer.CreateTeam(model, PlatformUtils.GetIdentityUserId(User)); if (validations.Count > 0) { return(BadRequest(validations)); } //Return contract return(Ok(ContractUtils.GenerateContract(model))); }