public async Task <Guid> Handle(CreateClinicCommand request, CancellationToken cancellationToken) { var clinic = new Clinic(request.Name, request.Location); var connection = _sqlConnectionFactory.GetOpenConnection(); var procedure = "[InsertIntoClinic]"; await connection.QueryAsync(procedure, clinic.CreateNew(), commandType : CommandType.StoredProcedure); //await _clinicRepository.AddAsync(clinic); //await _clinicRepository.Save(); return(clinic.Id.Value); }