public async Task <IActionResult> CreatePlace(PlaceCreateRequest request) { //Creazione modello richiesto da admin var model = new Place { Name = request.Name, Holder = request.Holder, Phone = request.Phone, Email = request.Email, Address = request.Address, City = request.City, Region = request.Region, PostalZipCode = request.PostalZipCode, Country = request.Country }; //Invocazione del service layer var validations = await BasicLayer.CreatePlace(model, PlatformUtils.GetIdentityUserId(User)); if (validations.Count > 0) { return(BadRequest(validations)); } //Return contract return(Ok(ContractUtils.GenerateContract(model))); }