public Task <IActionResult> CreateGroup(GroupCreateRequest request) { //Creazione modello richiesto da admin var model = new Group { Name = request.Name, MatchId = request.MatchId }; //Invocazione del service layer var validations = BasicLayer.CreateGroup(model); if (validations.Count > 0) { return(BadRequestTask(validations)); } //Return contract return(Reply(ContractUtils.GenerateContract(model))); }