public Task <IActionResult> CreateStage(StageCreateRequest request) { //Creazione modello richiesto da admin var model = new Stage { Name = request.Name, Targets = request.Targets, MatchId = request.MatchId, Index = request.Index, SO = request.SO, Scenario = request.Scenario, GunReadyCondition = request.GunReadyCondition, StageProcedure = request.StageProcedure, StageProcedureNotes = request.StageProcedureNotes, Strings = request.Strings, Scoring = request.Scoring, TargetsDescription = request.TargetsDescription, ScoredHits = request.ScoredHits, StartStop = request.StartStop, Rules = request.Rules, Distance = request.Distance, CoverGarment = request.CoverGarment }; //Invocazione del service layer var validations = BasicLayer.CreateStage(model); if (validations.Count > 0) { return(BadRequestTask(validations)); } //Return contract return(Reply(ContractUtils.GenerateContract(model))); }